Skip to content

Bump codecov/codecov-action from 4 to 5 #448

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #448

Workflow file for this run

on: [push]
name: Go tests
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
Build-and-test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...