analytics/.github/workflows/node.yml

34 lines
825 B
YAML
Raw Normal View History

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
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2021-10-11 15:57:01 +03:00
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
2021-10-11 15:57:01 +03:00
steps:
- 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
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
- 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
- run: npm run test --prefix ./assets
2021-11-24 13:06:28 +03:00
- run: npm run deploy --prefix ./tracker