Skip to content

chore(deps): update actions/upload-artifact action to v4 #435

chore(deps): update actions/upload-artifact action to v4

chore(deps): update actions/upload-artifact action to v4 #435

Workflow file for this run

---
name: Test (Golang)
on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize]
paths:
- .github/workflows/test.golang.yml
- go.*
- cmd/**
- pkg/**
push:
branches: [main]
jobs:
go-test:
name: Golang test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version
go-version: '1.22'
check-latest: true
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: szenius/set-timezone@ce9c440bc3af4f51b28d7ef7e5c47ee8f26c8dcb # v1.2
with:
timezoneLinux: "Europe/Paris"
- name: Run golang tests
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Archive code coverage results
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: golang-coverage-report
path: coverage.out
retention-days: 1
codecov:
name: Codecov
runs-on: ubuntu-latest
needs: [go-test]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: golang-coverage-report
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0