Skip to content

Update codecov/codecov-action action to v5 #468

Update codecov/codecov-action action to v5

Update codecov/codecov-action action to v5 #468

Workflow file for this run

name: ci
on: [push]
permissions:
contents: read
jobs:
binaries:
uses: ./.github/workflows/binaries.yaml
permissions:
actions: read
contents: write
id-token: write
npm-package:
uses: ./.github/workflows/npm_package.yaml
permissions:
actions: read
contents: write
id-token: write
test-coverage:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: '18'
cache: npm
- run: npm ci --build-from-source
env:
GO_TEXT_TEMPLATE_NAPI_COVERAGE: 'true'
- run: mkdir gocov
- run: npm run test -- --coverage --coverageReporters=json
env:
GOCOVERDIR: gocov
- run: go tool covdata textfmt -i=gocov -o=go-coverage.txt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}