-
Notifications
You must be signed in to change notification settings - Fork 39
72 lines (61 loc) · 1.77 KB
/
web-addon-local-account.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
name: '@emberclear/local-account'
# Inspiration:
# https://github.com/alexdiliberto/ember-transformicons/blob/master/.github/workflows/ci.yml
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
paths:
- 'client/web/addons/local-account/'
env:
CI: true
root: client/web/
addon: addons/local-account/
full: client/web/addons/local-account/
jobs:
lint:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: 'Lint'
runs-on: ubuntu-latest
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.full }}
run: yarn eslint . --ext js,ts
- name: "Templates"
working-directory: ${{ env.full }}
run: yarn ember-template-lint .
- name: 'Type Correctness'
working-directory: ${{ env.full }}
run: yarn tsc --build
# - uses: wagoid/commitlint-github-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GH_PAT }}
tests_ember_compat:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Ember Compatability
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
scenario:
# - "ember-lts-3.16"
- "ember-lts-3.20"
# - "ember-release"
# - "ember-beta"
# - "ember-canary"
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- name: Install
run: yarn install
working-directory: ${{ env.root }}
- name: "Test: ${{ matrix.scenario }}"
working-directory: ${{ env.full }}
run: yarn test:try-one ${{ matrix.scenario }}