2022-11-14 13:46:36 -05:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-11-14 13:52:04 -05:00
|
|
|
branches:
|
|
|
|
- master
|
2024-11-18 11:30:26 -05:00
|
|
|
# https://docs.renovatebot.com/key-concepts/automerge/#branch-vs-pr-automerging
|
|
|
|
- "renovate/**" # branches Renovate creates
|
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:
|
2024-10-25 18:08:01 -04:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
|
2022-11-14 13:46:36 -05:00
|
|
|
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 }}
|
2024-11-20 20:04:02 -05:00
|
|
|
- uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5
|
2023-10-30 19:40:44 -04:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|