Skip to content

add logs

add logs #2713

Workflow file for this run

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@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Check go.mod
run: |
go mod tidy
git diff --exit-code
- name: Test
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 .