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