mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
31 lines
805 B
YAML
31 lines
805 B
YAML
name: NPM CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, stable]
|
|
pull_request:
|
|
branches: [master, stable]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Read .tool-versions
|
|
uses: marocchino/tool-versions-action@v1
|
|
id: versions
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{steps.versions.outputs.nodejs}}
|
|
- run: npm install --prefix ./assets
|
|
- run: npm run lint --prefix ./assets
|
|
- run: npm run check-format --prefix ./assets
|
|
- name: Run BundleMon
|
|
run: npm run bundlemon --prefix ./assets
|
|
env:
|
|
BUNDLEMON_PROJECT_ID: "619e0b6ad4a54a00089861ac"
|
|
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} # important!
|