Skip to content

Bump codecov/codecov-action from 5.1.2 to 5.3.1 (#94) #27

Bump codecov/codecov-action from 5.1.2 to 5.3.1 (#94)

Bump codecov/codecov-action from 5.1.2 to 5.3.1 (#94) #27

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/[email protected] # immutable action, safe to use the versions
- name: Install Go
uses: actions/[email protected] # 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@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.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