Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

build(deps): bump the ci group across 1 directory with 5 updates #544

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

build(deps): bump the ci group across 1 directory with 5 updates #544

Workflow file for this run

name: Code
on:
push:
tags:
- v*
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
permissions:
contents: read
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.head_ref) }}
cancel-in-progress: true
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@90b2bf6e8cbbba34a5e514cfe9d3f7541d91ffa7 #v1.2.0
id: versions
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 install github.com/jstemmer/go-junit-report/v2@latest
- run: go test -race -cover -coverprofile=coverage.out -covermode=atomic
- run: go test -json 2>&1 | 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
GolangCI-Lint:
needs: GoVersions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ needs.GoVersions.outputs.latest }}
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: latest