Skip to content

🌱 Bump codecov/codecov-action from 3.1.2 to 3.1.3 #1192

🌱 Bump codecov/codecov-action from 3.1.2 to 3.1.3

🌱 Bump codecov/codecov-action from 3.1.2 to 3.1.3 #1192

Workflow file for this run

name: CI-Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions: read-all
jobs:
unit-tests:
name: Run unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
permissions:
id-token: write # Needed to pick up on signing with a GitHub workflow identity.
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v2.4.0
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 #v2.1.7
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 #v2.1.5
with:
go-version: '1.18'
- name: Run Go tests
# cannot run tests with race because we are mutating state (setting ENV variables)
run: GITHUB_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} go test -covermode=atomic -coverprofile=unit-coverage.out ./...
- name: Upload codecoverage
uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 # 2.1.0
with:
files: ./unit-coverage.out
verbose: true
verify:
name: Run verify
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v2.4.0
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 #v2.1.7
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 #v2.1.5
with:
go-version: '1.19.x'
- name: Run Go verify
run: |
go mod tidy && go mod verify
git diff --exit-code