Skip to content

Update actions/upload-artifact action to v4.5.0 #502

Update actions/upload-artifact action to v4.5.0

Update actions/upload-artifact action to v4.5.0 #502

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@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: go.mod
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
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@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}