Skip to content

Bump codecov/codecov-action from 5.3.1 to 5.4.0 #33

Bump codecov/codecov-action from 5.3.1 to 5.4.0

Bump codecov/codecov-action from 5.3.1 to 5.4.0 #33

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:
UnitTestJob:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.21"
- "1.22"
- "1.23"
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2 # immutable action, safe to use the versions
- name: Install Go
uses: actions/setup-go@v5.3.0 # immutable action, safe to use the versions
with:
go-version: ${{ matrix.go }}
- name: gofmt
run: diff -u <(echo -n) <(gofmt -l . )
- name: show diff
if: ${{ failure() }}
run: git diff
- name: go vet
run: go vet ./...
- name: Run Unit Tests
run: go test -race -cover -coverprofile=coverage.out -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
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