Skip to content

fix: security scan CI failures (#112) #371

fix: security scan CI failures (#112)

fix: security scan CI failures (#112) #371

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.21'
- '1.22'
- '1.23'
- '1.24'
- '1.25'
- '1.26'
- 'stable'
steps:
- uses: actions/checkout@v6
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@v6
with:
go-version: ${{ matrix.go }}
- 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@v6
with:
working-directory: ./github.com/samber/oops
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
flags: unittests
verbose: true
if: matrix.go == '1.21'