chore: zap should be initiated with sentry in production #203
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- 1.20.x | |
- 1.19.x | |
name: Test with Go v${{ matrix.go }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Intall goveralls | |
run: | | |
go install github.com/mattn/goveralls@latest | |
- name: Generate ent | |
run: | | |
make generate | |
- name: Test | |
run: | | |
make tests | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
goveralls -coverprofile=coverage.out -service=github |