Skip to content

ci(action): update actions/checkout digest to 8ade135 #135

ci(action): update actions/checkout digest to 8ade135

ci(action): update actions/checkout digest to 8ade135 #135

Workflow file for this run

name: Lint & Test
on:
workflow_call:
pull_request:
branches:
- main
jobs:
lint-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout project
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm ci
- name: Check codestyle compliance
run: npm run lint
- name: Run tests
run: npm run test
- name: Upload coverage reports to Codecov
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.node-version == 20) }}
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage-final.json
fail_ci_if_error: true