-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (51 loc) · 1.39 KB
/
main.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
name: workflow
on:
push:
branches:
- '*'
paths-ignore:
- 'examples/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'examples/**'
jobs:
job:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Prepare
run: |
env CHROMEDRIVER_FILEPATH=$CHROMEWEBDRIVER/chromedriver npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Unit Test
run: npm run test:spec
- name: Integration Test (Node)
run: npm run test:e2e:node
- name: Integration Test (Local Browser)
run: npm run test:e2e:browser
- name: Integration Test (BrowserStack)
run: npm run test:e2e:browserstack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Upload Test Artifacts
uses: actions/upload-artifact@v2
if: always()
with:
name: outputs
path: output