2022-11-14 13:46:36 -05:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-11-14 13:52:04 -05:00
|
|
|
branches:
|
|
|
|
- master
|
2022-11-14 13:46:36 -05:00
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2022-11-14 13:52:04 -05:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-11-14 13:46:36 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2024-01-26 18:17:30 -05:00
|
|
|
node-version: 20
|
2022-11-15 10:57:34 -05:00
|
|
|
cache: "npm"
|
2022-11-14 13:46:36 -05:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run format:check
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run package
|
2023-06-22 03:23:18 -04:00
|
|
|
- run: npm run test
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-10-30 19:40:44 -04:00
|
|
|
- uses: codecov/codecov-action@v3
|
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|