Only skip GOROOT frames when GOROOT is non-empty. (#12) #54
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: | |
tags: | |
branches: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# we need control over the path, since stacktrace tests rely on it | |
path: github.com/samber/oops | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
stable: false | |
- name: Build | |
working-directory: ./github.com/samber/oops | |
run: make build | |
- name: Test | |
working-directory: ./github.com/samber/oops | |
run: make test | |
- name: Test | |
working-directory: ./github.com/samber/oops | |
run: make coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
working-directory: ./github.com/samber/oops | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./cover.out | |
flags: unittests | |
verbose: true |