Update nightly-build.yml #2300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ 1.22.x ] | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup access for private go modules | |
run: | | |
git config --global url."ssh://[email protected]/".insteadOf https://github.com/ | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test | |
env: | |
GOPRIVATE: github.com/aerospike/backup-go | |
run: | | |
go test -race -tags=ci ./... -coverprofile=coverage.out -covermode=atomic | |
grep -v -E -f .covignore coverage.out > coverage.filtered.out | |
mv coverage.filtered.out coverage.out | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Build | |
run: | | |
cd cmd/backup | |
go build -tags=ci . |