Skip to content

fix(deps): update module github.com/stretchr/testify to v1.12.1 #79

fix(deps): update module github.com/stretchr/testify to v1.12.1

fix(deps): update module github.com/stretchr/testify to v1.12.1 #79

Workflow file for this run

name: CI
on:
push:
branches:
- master
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Setup gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run Linter
uses: golangci/golangci-lint-action@v8
- name: Run Tests
run: |
mkdir -p reports
gotestsum --format testname \
--junitfile reports/unit-tests.xml \
-- -coverprofile=cover.out
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: test-reports
path: reports/
retention-days: 5
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: reports/unit-tests.xml
slug: ${{ github.repository }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ !cancelled() }}
with:
files: ./cover.out
slug: ${{ github.repository }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}