-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (38 loc) · 1.21 KB
/
ci.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
name: CI
on:
push:
branches: [master]
pull_request_target:
branches: [master]
types: [assigned, labeled, opened, reopened, synchronize]
concurrency:
group: ci
jobs:
ci:
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request_target' ||
github.event.pull_request.user.login == 'tanem' ||
github.event.pull_request.user.login == 'renovate[bot]' ||
contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: 'browserstack/github-actions/setup-env@master'
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
if: github.event_name != 'pull_request_target'
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
check-latest: true
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v3