-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (60 loc) · 1.71 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
name: CI
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
schedule:
- cron: '0 3 * * 0' # every Sunday at 3am
env:
CI: true
jobs:
tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Base Tests
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Install according to lock file
run: npm ci
- name: Install xvfb for running headful Chrome
run: sudo apt-get install xvfb
- name: Lint
run: npm run lint
- name: Run Tests
run: xvfb-run --auto-servernum npm test
try-scenarios:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: "Compatibility"
timeout-minutes: 10
runs-on: ubuntu-latest
needs: tests
strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.20
- ember-lts-3.24
- ember-release
- ember-beta
# - embroider
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Install dependencies
run: npm install
- name: test
run: xvfb-run --auto-servernum node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup