chore(release): v3.0.0-alpha.3 #4
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: Tests | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Set Node.js version | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
test-unit: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Set Node.js version | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Test unit | |
run: npm test | |
- name: Merge coverage | |
run: | |
npx istanbul-merge --out ./coverage-final.json coverage/coverage-final.json | |
- name: CodeCov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests | |
files: ./coverage-final.json |