Bump github/codeql-action from 2.20.3 to 2.21.6 #157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeCov Test and coverage | |
on: [push] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 | |
with: | |
go-version: '1.16' | |
- name: Run coverage | |
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic -tags=debugNflex | |
- name: Upload coverage to Codecov | |
run: env CODECOV_TOKEN=764eb126-04d6-46cf-a952-cb51766c8572 bash <(curl -s https://codecov.io/bash) |