-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (32 loc) · 1.03 KB
/
lint-and-test.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
name: Lint and test
on: [push, pull_request]
defaults:
run:
working-directory: ./website
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
nodejs: [18]
steps:
- uses: actions/checkout@v2
# https://github.com/actions/setup-node
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.nodejs }}
- run: npm install --prefix=../games/monster-steps
- run: npm install --prefix=../games/nukes
- run: npm install --prefix=../games/masterplan
- run: npm install --prefix=../games/xmas
- run: npm install --prefix=../games/hungry-lion
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run build --prefix=../games/monster-steps
- run: npm run build --prefix=../games/nukes
- run: npm run build --prefix=../games/masterplan
- run: npm run build --prefix=../games/xmas
- run: npm run build --prefix=../games/hungry-lion
- run: npm run build