Skip to content

chore(ci): replace secret-scanner.yml with reusable wrapper #152

chore(ci): replace secret-scanner.yml with reusable wrapper

chore(ci): replace secret-scanner.yml with reusable wrapper #152

Workflow file for this run

# SPDX-License-Identifier: MPL-2.0
permissions:
contents: read
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Run build
run: npm run build
- name: Check formatting
run: npm run format:check
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Use Node.js
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate coverage
run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella