fix(deps): update module github.com/golangci/golangci-lint to v2 #163
This file contains hidden or 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: Test Report | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
report: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Git Fetch | |
run: git fetch --force --tags | |
- name: Setup go | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
with: | |
go-version: stable | |
- name: Run Unit Tests | |
run: make unit-test | |
- name: Test Report | |
uses: dorny/test-reporter@890a17cecf52a379fc869ab770a71657660be727 # v2 | |
if: success() || failure() | |
with: | |
name: Unit Test Results | |
path: ./build/reports/**-test.xml | |
reporter: java-junit | |
fail-on-error: 'true' | |
- name: Upload Reports | |
if: always() | |
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
with: | |
name: unit-test-reports | |
path: ./build/reports/** |