Skip to content

Continuing to update Hannibal #1117

Continuing to update Hannibal

Continuing to update Hannibal #1117

Workflow file for this run

name: Go
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Report Code Coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage.txt
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
# - name: GolangCI-Lint
# uses: golangci/golangci-lint-action@v4
# with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
# version: v1.56.2
# skip-cache: true
# skip-pkg-cache: true
# skip-build-cache: true