mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: On pull request
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
web_lint:
|
|
name: Web - Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: actions/setup-node@master
|
|
with:
|
|
node-version: 14.x
|
|
- run: npm install
|
|
working-directory: ./web
|
|
- name: Lint
|
|
run: npm run lint:cmd
|
|
working-directory: ./web
|
|
|
|
web_build:
|
|
name: Web - Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: actions/setup-node@master
|
|
with:
|
|
node-version: 14.x
|
|
- run: npm install
|
|
working-directory: ./web
|
|
- name: Build
|
|
run: npm run build
|
|
working-directory: ./web
|
|
|
|
web_test:
|
|
name: Web - Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: actions/setup-node@master
|
|
with:
|
|
node-version: 14.x
|
|
- run: npm install
|
|
working-directory: ./web
|
|
- name: Test
|
|
run: npm run test
|
|
working-directory: ./web
|