-
Notifications
You must be signed in to change notification settings - Fork 22
82 lines (82 loc) · 2.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on: pull_request
jobs:
lint:
name: Lint
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: '14'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint (JavaScript)
run: npm run lint:eslint
- name: Lint (CSS)
run: npm run lint:style
- name: Lint (Lit)
run: npm run lint:lit
a11y:
name: Accessibility Tests
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: '14'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:axe
bs:
name: Unit Tests (BrowserStack)
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: '14'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install karma-browserstack-launcher@1 --no-save
- name: Build
run: npm run build
- name: BrowserStack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
run: npx karma start karma.bs.conf.js
sauce:
name: Unit Tests (SauceLabs)
timeout-minutes: 10
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: '14'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install karma-sauce-launcher@2 --no-save
- name: Build
run: npm run build
- name: SauceLabs
env:
SAUCE_USERNAME: Gaudi1
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY_GAUDI }}
run: npx karma start karma.sauce.conf.js