analytics/.github/workflows/node.yml
2021-10-12 11:15:50 +02:00

26 lines
574 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