-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (44 loc) · 1.33 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
# Angular project
- name: Install Angular dependencies
working-directory: ./betting-game-angular
run: yarn install
- name: Lint Angular source files
working-directory: ./betting-game-angular
run: yarn lint
- name: Run Angular tests
working-directory: ./betting-game-angular
run: yarn test
# VueJs project
- name: Install Vue dependencies
working-directory: ./betting-game-vue
run: yarn install
- name: Lint Vue source files
working-directory: ./betting-game-vue
run: yarn lint
- name: Run Vue tests
working-directory: ./betting-game-vue
run: yarn test:unit
# React project
- name: Install React dependencies
working-directory: ./betting-game-react
run: yarn install
- name: Lint React source files
working-directory: ./betting-game-react
run: yarn lint
- name: Run React tests
working-directory: ./betting-game-react
run: yarn test-ci