2021-10-11 15:57:01 +03:00
|
|
|
name: NPM CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master, stable]
|
|
|
|
pull_request:
|
2024-09-12 18:05:34 +03:00
|
|
|
merge_group:
|
2021-10-11 15:57:01 +03:00
|
|
|
|
2023-09-20 15:06:04 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-10-11 15:57:01 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build and test
|
2024-08-27 12:06:12 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-11 15:57:01 +03:00
|
|
|
|
|
|
|
steps:
|
2023-09-14 15:13:34 +03:00
|
|
|
- uses: actions/checkout@v4
|
2021-10-11 15:57:01 +03:00
|
|
|
- name: Read .tool-versions
|
|
|
|
uses: marocchino/tool-versions-action@v1
|
|
|
|
id: versions
|
|
|
|
- name: Set up Node
|
2023-10-31 20:58:18 +03:00
|
|
|
uses: actions/setup-node@v4
|
2021-10-11 15:57:01 +03:00
|
|
|
with:
|
|
|
|
node-version: ${{steps.versions.outputs.nodejs}}
|
2021-10-12 12:15:50 +03:00
|
|
|
- run: npm install --prefix ./assets
|
2021-11-24 13:17:05 +03:00
|
|
|
- run: npm install --prefix ./tracker
|
2024-08-15 14:45:06 +03:00
|
|
|
- run: npm run typecheck --prefix ./assets
|
2021-10-12 12:15:50 +03:00
|
|
|
- run: npm run lint --prefix ./assets
|
|
|
|
- run: npm run check-format --prefix ./assets
|
2024-08-15 12:27:22 +03:00
|
|
|
- run: npm run test --prefix ./assets
|
2021-11-24 13:06:28 +03:00
|
|
|
- run: npm run deploy --prefix ./tracker
|