Skip to content

Commit 84f3438

Browse files
committed
ci: let's see if we can get tests running in GH Actions
1 parent d3c5508 commit 84f3438

File tree

3 files changed

+201
-800
lines changed

3 files changed

+201
-800
lines changed

.github/workflows/ci.yml

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: CI
2+
3+
# These trigger patterns based on https://github.com/broccolijs/broccoli/pull/436
4+
on:
5+
pull_request:
6+
push:
7+
# filtering branches here prevents duplicate builds from pull_request and push
8+
branches:
9+
- master
10+
- 'v*'
11+
# always run CI for tags
12+
tags:
13+
- '*'
14+
15+
# early issue detection: run CI weekly on Sundays
16+
schedule:
17+
- cron: '0 6 * * 0'
18+
19+
env:
20+
CI: true
21+
22+
jobs:
23+
commitlint:
24+
name: Lint Commits
25+
runs-on: ubuntu-latest
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v1
31+
- name: Commitlint
32+
uses: wagoid/commitlint-github-action@v1.2.2
33+
34+
test-locked-deps:
35+
name: Test (linux, locked dependencies)
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout Code
39+
uses: actions/checkout@v1
40+
- name: Install Node
41+
uses: actions/setup-node@v1
42+
with:
43+
node-version: '^8.12'
44+
# https://github.com/expo/expo-github-action/issues/20#issuecomment-541676895
45+
- name: Raise Watched File Limit
46+
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
47+
- name: Install Dependencies
48+
run: yarn install --frozen-lockfile
49+
- name: Lint JS/TS Code
50+
run: yarn lint:js
51+
- name: Prepare CI Environment
52+
run: yarn ci:prepare
53+
- name: Ember App Tests
54+
run: yarn ci:test:app
55+
- name: Node Tests
56+
run: yarn ci:test:node
57+
58+
test-windows:
59+
name: Test (windows, locked dependencies)
60+
runs-on: windows-latest
61+
steps:
62+
- name: Checkout Code
63+
uses: actions/checkout@v1
64+
- name: Install Node
65+
uses: actions/setup-node@v1
66+
with:
67+
node-version: '^8.12'
68+
- name: Install Dependencies
69+
run: yarn install --frozen-lockfile
70+
- name: Prepare CI Environment
71+
run: yarn ci:prepare
72+
- name: Ember App Tests
73+
run: yarn ci:test:app
74+
- name: Node Tests
75+
run: yarn ci:test:node
76+
77+
test-floating:
78+
name: Test (linux, floating dependencies)
79+
runs-on: ubuntu-latest
80+
needs: [test-locked-deps]
81+
steps:
82+
- name: Checkout Code
83+
uses: actions/checkout@v1
84+
- name: Install Node
85+
uses: actions/setup-node@v1
86+
with:
87+
node-version: '^8.12'
88+
- name: Raise Watched File Limit
89+
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
90+
- name: Install Dependencies
91+
run: yarn install --no-lockfile
92+
- name: Prepare CI Environment
93+
run: yarn ci:prepare
94+
- name: Ember App Tests
95+
run: yarn ci:test:app
96+
- name: Node Tests
97+
run: yarn ci:test:node
98+
99+
test-ts-cli-matrix:
100+
name: Test
101+
runs-on: ubuntu-latest
102+
needs: [test-locked-deps]
103+
strategy:
104+
matrix:
105+
deps:
106+
- ember-cli@latest
107+
- ember-cli@beta
108+
- typescript@latest
109+
- typescript@next
110+
steps:
111+
- name: Checkout Code
112+
uses: actions/checkout@v1
113+
- name: Install Node
114+
uses: actions/setup-node@v1
115+
with:
116+
node-version: '^8.12'
117+
- name: Raise Watched File Limit
118+
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
119+
- name: Install Dependencies
120+
run: yarn add --dev ${{ matrix.deps }}
121+
- name: Prepare CI Environment
122+
run: yarn ci:prepare
123+
- name: Ember App Tests
124+
run: yarn ci:test:app
125+
- name: Node Tests
126+
run: yarn ci:test:node
127+

ts/tests/acceptance/build-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
const { expect } = chai;
1515

1616
describe('Acceptance: build', function() {
17-
this.timeout(30 * 1000);
17+
this.timeout(60 * 1000);
1818
let app: SkeletonApp;
1919
beforeEach(function() {
2020
app = new SkeletonApp();

0 commit comments

Comments
 (0)