-
-
Notifications
You must be signed in to change notification settings - Fork 923
30 lines (27 loc) · 667 Bytes
/
test.yml
File metadata and controls
30 lines (27 loc) · 667 Bytes
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
name: Node CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: mocha
run: docker-compose run --rm mocha
- name: docker-compose logs
if: always()
run: docker-compose logs nginx
- name: docker-compose down
if: always()
run: docker-compose down -v