Skip to content

Merge pull request #62 from bigspawn/dependabot/github_actions/docker… #193

Merge pull request #62 from bigspawn/dependabot/github_actions/docker…

Merge pull request #62 from bigspawn/dependabot/github_actions/docker… #193

Workflow file for this run

name: go
on:
push:
branches: ["main"]
paths-ignore:
- "**.md"
- "doc/**"
- ".vscode/**"
- ".idea/**"
- "examples/**"
- "docker-compose.yml"
- "LICENSE"
- ".gitignore"
pull_request:
branches: ["main"]
paths-ignore:
- "**.md"
- "doc/**"
- ".vscode/**"
- ".idea/**"
- "examples/**"
- "docker-compose.yml"
- "LICENSE"
- ".gitignore"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
cache: true
- name: Build
run: go build -mod=vendor -v ./...
- name: Test
run: go test -mod=vendor -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v5
with:
files: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false