Skip to content

chore(deps): bump the ci group across 1 directory with 5 updates #173

chore(deps): bump the ci group across 1 directory with 5 updates

chore(deps): bump the ci group across 1 directory with 5 updates #173

Workflow file for this run

name: Code
on:
push:
tags:
- v*
branches:
- main
- v*
pull_request:
schedule:
- cron: '38 5 * * 3'
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.head_ref) }}
cancel-in-progress: true
permissions: read-all
jobs:
GoVersions:
name: Lookup Go versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
latest: ${{ steps.versions.outputs.latest }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.5.0
- uses: arnested/go-version-action@978371bd4d8cad0f54106c8be4273e2fcdd74f57 #v1.1.23
id: versions
Lint:
runs-on: ubuntu-latest
needs: GoVersions
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ needs.GoVersions.outputs.latest }}
- name: Verify Config
run: go tool -modfile=".github/tools/go.mod" golangci-lint config verify --verbose
- name: Run Linter
run: go tool -modfile=".github/tools/go.mod" golangci-lint run --verbose
UnitTestJob:
runs-on: ubuntu-latest
needs: GoVersions
strategy:
matrix:
go: ${{ fromJSON(needs.GoVersions.outputs.matrix) }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ matrix.go }}
- run: go test -race -cover -coverprofile=coverage.out -covermode=atomic ./...
- run: go test -json 2>&1 | go tool -modfile=".github/tools/go.mod" go-junit-report -parser gojson > junit.xml
if: always()
- name: Upload coverage reports to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
UnitTests:
if: ${{ always() }}
needs: UnitTestJob
runs-on: ubuntu-latest
steps:
- name: Check status
if: ${{ needs.UnitTestJob.result != 'success' }}
run: exit 1