-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.1 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Pull Request Feedback'
on: pull_request
jobs:
eslint:
name: Frontend ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
# Cache docker layers for faster build
- uses: satackey/action-docker-layer-caching@v0.0.8
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Build
run: docker build -t qgraph -f Dockerfile.dev .
- name: Run ESLint and get output
run: docker run --name qgraph qgraph npm run --silent lint
test:
name: Frontend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
# Cache docker layers for faster build
- uses: satackey/action-docker-layer-caching@v0.0.8
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Build
run: docker build -t qgraph -f Dockerfile.test .
- name: Run tests
run: docker run --name qgraph qgraph npm run --silent test:pr