-
Notifications
You must be signed in to change notification settings - Fork 39
64 lines (47 loc) · 1.21 KB
/
web-addon-ui.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
name: 'Web @emberclear/ui'
on:
pull_request:
branches: [master]
paths:
- 'client/web/addons/ui/**'
- 'client/web/package.json'
env:
root: client/web/
addon: addons/ui/
full: client/web/addons/ui/
jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- name: Install
working-directory: ${{ env.root }}
run: yarn install
- name: "JS/TS"
working-directory: ${{ env.root }}
run: yarn eslint ${{ env.addon }} --ext js,ts
- name: "Templates"
working-directory: ${{ env.full }}
run: yarn ember-template-lint .
- name: "Styles"
working-directory: ${{ env.root }}
run: yarn stylelint ${{ env.addon }}**/*.css
- name: 'Type Correctness'
working-directory: ${{ env.full }}
run: yarn tsc --build
test:
name: 'Test'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- name: Install
working-directory: ${{ env.root }}
run: yarn install
- name: Ember
working-directory: "${{ env.root }}/${{ env.addon }}"
run: yarn test