|
1 | 1 | name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | | - pull_request: |
5 | 4 | push: |
6 | | - # filtering branches here prevents duplicate builds from pull_request and push |
7 | 5 | branches: |
8 | 6 | - main |
9 | | - schedule: |
10 | | - - cron: '0 3 * * 0' # every Sunday at 3am |
| 7 | + - master |
| 8 | + pull_request: {} |
11 | 9 |
|
12 | | -env: |
13 | | - CI: true |
| 10 | +concurrency: |
| 11 | + group: ci-${{ github.head_ref || github.ref }} |
| 12 | + cancel-in-progress: true |
14 | 13 |
|
15 | 14 | jobs: |
16 | | - tests: |
17 | | - if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" |
18 | | - name: Base Tests |
19 | | - timeout-minutes: 5 |
| 15 | + test: |
| 16 | + name: 'Tests' |
20 | 17 | runs-on: ubuntu-latest |
21 | | - strategy: |
22 | | - matrix: |
23 | | - node: |
24 | | - - '12' |
25 | | - - '14' |
| 18 | + timeout-minutes: 10 |
| 19 | + |
26 | 20 | steps: |
27 | | - - uses: actions/checkout@v2 |
28 | | - - uses: volta-cli/action@v1 |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + - name: Install Node |
| 23 | + uses: actions/setup-node@v3 |
29 | 24 | with: |
30 | | - node-version: ${{ matrix.node }} |
31 | | - |
32 | | - - run: npm ci |
33 | | - |
34 | | - - name: Test with ${{ matrix.node }} |
| 25 | + node-version: 14.x |
| 26 | + cache: npm |
| 27 | + - name: Install Dependencies |
| 28 | + run: npm ci |
| 29 | + - name: Lint |
| 30 | + run: npm run lint |
| 31 | + - name: Run Tests |
35 | 32 | run: npm run test:ember |
36 | 33 |
|
37 | | - floating-dependencies: |
38 | | - if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" |
39 | | - name: Floating Dependencies |
40 | | - timeout-minutes: 5 |
| 34 | + floating: |
| 35 | + name: 'Floating Dependencies' |
41 | 36 | runs-on: ubuntu-latest |
42 | | - strategy: |
43 | | - matrix: |
44 | | - node: |
45 | | - - '12' |
46 | | - - '14' |
| 37 | + timeout-minutes: 10 |
47 | 38 |
|
48 | 39 | steps: |
49 | | - - uses: actions/checkout@v2 |
50 | | - - uses: volta-cli/action@v1 |
| 40 | + - uses: actions/checkout@v3 |
| 41 | + - uses: actions/setup-node@v3 |
51 | 42 | with: |
52 | | - node-version: ${{ matrix.node }} |
53 | | - |
54 | | - - run: npm install --no-package-lock |
55 | | - - name: Test with Node ${{ matrix.node }} |
| 43 | + node-version: 14.x |
| 44 | + cache: npm |
| 45 | + - name: Install Dependencies |
| 46 | + run: npm install --no-shrinkwrap |
| 47 | + - name: Run Tests |
56 | 48 | run: npm run test:ember |
57 | 49 |
|
58 | 50 | try-scenarios: |
59 | | - if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" |
60 | | - name: 'Compatibility' |
61 | | - timeout-minutes: 5 |
| 51 | + name: ${{ matrix.try-scenario }} |
62 | 52 | runs-on: ubuntu-latest |
63 | | - needs: tests |
| 53 | + needs: 'test' |
| 54 | + timeout-minutes: 10 |
64 | 55 |
|
65 | 56 | strategy: |
66 | | - fail-fast: true |
| 57 | + fail-fast: false |
67 | 58 | matrix: |
68 | | - ember-try-scenario: |
69 | | - - ember-lts-3.20 |
| 59 | + try-scenario: |
70 | 60 | - ember-lts-3.24 |
| 61 | + - ember-lts-3.28 |
71 | 62 | - ember-release |
72 | | - # - ember-beta |
73 | | - # - ember-canary |
| 63 | + - ember-beta |
| 64 | + - ember-canary |
74 | 65 | - ember-classic |
| 66 | + - embroider-safe |
| 67 | + - embroider-optimized |
| 68 | + |
75 | 69 | steps: |
76 | | - - uses: actions/checkout@v2 |
77 | | - - uses: volta-cli/action@v1 |
| 70 | + - uses: actions/checkout@v3 |
| 71 | + - name: Install Node |
| 72 | + uses: actions/setup-node@v3 |
78 | 73 | with: |
79 | 74 | node-version: 14.x |
80 | | - - name: install dependencies |
| 75 | + cache: npm |
| 76 | + - name: Install Dependencies |
81 | 77 | run: npm ci |
82 | | - - name: test |
83 | | - run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup |
| 78 | + - name: Run Tests |
| 79 | + run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} |
0 commit comments