-
Notifications
You must be signed in to change notification settings - Fork 99
109 lines (101 loc) · 3.05 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
# These trigger patterns based on https://github.com/broccolijs/broccoli/pull/436
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
- 'v*'
# always run CI for tags
tags:
- '*'
# early issue detection: run CI weekly on Sundays
schedule:
- cron: '0 6 * * 0'
env:
CI: true
jobs:
test-locked-deps:
name: Test (linux, locked dependencies)
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node
uses: volta-cli/action@v4
# https://github.com/expo/expo-github-action/issues/20#issuecomment-541676895
- name: Raise Watched File Limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint JS/TS Code
run: yarn lint:js
- name: Prepare CI Environment
run: yarn ci:prepare
- name: Ember App Tests
run: yarn ci:test:app
- name: Node Tests
run: yarn ci:test:node
test-windows:
name: Test (windows, locked dependencies)
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node
uses: volta-cli/action@v4
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Prepare CI Environment
run: yarn ci:prepare
- name: Ember App Tests
run: yarn ci:test:app
- name: Node Tests
run: yarn ci:test:node
test-floating:
name: Test (linux, floating dependencies)
runs-on: ubuntu-latest
needs: [test-locked-deps]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node
uses: volta-cli/action@v4
- name: Raise Watched File Limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Prepare CI Environment
run: yarn ci:prepare
- name: Ember App Tests
run: yarn ci:test:app
- name: Node Tests
run: yarn ci:test:node
test-ts-cli-matrix:
name: Test
runs-on: ubuntu-latest
needs: [test-locked-deps]
strategy:
fail-fast: false
matrix:
deps:
- ember-cli@latest
- ember-cli@beta
- typescript@latest
- typescript@next
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node
uses: volta-cli/action@v4
- name: Raise Watched File Limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Install Dependencies
run: yarn add --dev ${{ matrix.deps }}
- name: Prepare CI Environment
run: yarn ci:prepare
- name: Ember App Tests
run: yarn ci:test:app
- name: Node Tests
run: yarn ci:test:node