Skip to content

Commit 6af2d79

Browse files
authored
main.yml
1 parent 457faf5 commit 6af2d79

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Node Setup
17+
uses: actions/[email protected]
18+
19+
# this is required for Appium's internal 'npm link' to work, given that 'npm link' always
20+
# uses the global node modules folder as an intermediary
21+
- name: Node Perms Fix
22+
run: sudo chown -R "$USER:" /usr/local/lib/node_modules
23+
24+
- name: Code Checkout
25+
uses: actions/checkout@v2
26+
27+
- name: Install
28+
run: npm install
29+
30+
- name: Package Bootstrap
31+
run: npm run bootstrap
32+
33+
- name: Transpile
34+
run: npm run build
35+
36+
- name: Lint
37+
run: npm run test:lint
38+
39+
- name: Unit Tests
40+
run: npm run test:unit
41+
42+
- name: E2E Tests
43+
run: npm run test:e2e

0 commit comments

Comments
 (0)