mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
e2eb861799
Chained PRs (like https://github.com/plausible/analytics/pull/3708) don't currently run tests. This PR fixes that.
31 lines
734 B
YAML
31 lines
734 B
YAML
name: NPM CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, stable]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and test
|
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Read .tool-versions
|
|
uses: marocchino/tool-versions-action@v1
|
|
id: versions
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{steps.versions.outputs.nodejs}}
|
|
- run: npm install --prefix ./assets
|
|
- run: npm install --prefix ./tracker
|
|
- run: npm run lint --prefix ./assets
|
|
- run: npm run check-format --prefix ./assets
|
|
- run: npm run deploy --prefix ./tracker
|