|
8 | 8 | branches: |
9 | 9 | - master |
10 | 10 | - 'v*' |
| 11 | + - standalone-template-transform |
11 | 12 | # always run CI for tags |
12 | 13 | tags: |
13 | 14 | - '*' |
14 | 15 |
|
15 | | - # early issue detection: run CI weekly on Sundays |
16 | | - schedule: |
17 | | - - cron: '0 6 * * 0' |
18 | | - |
19 | 16 | env: |
20 | 17 | CI: true |
21 | 18 |
|
22 | 19 | jobs: |
23 | | - test-locked-deps: |
24 | | - name: Locked Deps |
25 | | - runs-on: ubuntu-latest |
26 | | - steps: |
27 | | - - name: Checkout Code |
28 | | - uses: actions/checkout@v1 |
29 | | - - name: Install Node |
30 | | - uses: actions/setup-node@v1 |
31 | | - with: |
32 | | - node-version: 16 |
33 | | - - name: Install Dependencies |
34 | | - run: yarn install --frozen-lockfile |
35 | | - - name: Run Tests |
36 | | - run: yarn workspace ember-css-modules test |
37 | | - |
38 | | - test-old-dependencies: |
39 | | - name: Oldest Supported Env |
40 | | - runs-on: ubuntu-latest |
41 | | - steps: |
42 | | - - name: Checkout Code |
43 | | - uses: actions/checkout@v1 |
44 | | - - name: Install Node |
45 | | - uses: actions/setup-node@v1 |
46 | | - with: |
47 | | - node-version: 12 |
48 | | - - name: Install Dependencies |
49 | | - run: yarn install --frozen-lockfile |
50 | | - working-directory: test-packages/old-app |
51 | | - - name: Run Tests |
52 | | - run: yarn test |
53 | | - working-directory: test-packages/old-app |
54 | | - |
55 | | - test-latest-ember-cli: |
56 | | - name: Latest CLI |
57 | | - runs-on: ubuntu-latest |
58 | | - needs: [test-locked-deps] |
59 | | - steps: |
60 | | - - name: Checkout Code |
61 | | - uses: actions/checkout@v1 |
62 | | - - name: Install Node |
63 | | - uses: actions/setup-node@v1 |
64 | | - with: |
65 | | - node-version: 16 |
66 | | - - name: Install Dependencies |
67 | | - run: yarn install --frozen-lockfile |
68 | | - - name: Install Latest `ember-cli` |
69 | | - run: yarn workspace ember-css-modules add --dev ember-cli@latest |
70 | | - - name: Run Tests |
71 | | - run: yarn workspace ember-css-modules test |
72 | | - |
73 | | - |
74 | | - test-windows: |
75 | | - name: Windows |
76 | | - runs-on: windows-latest |
77 | | - needs: [test-locked-deps] |
78 | | - steps: |
79 | | - - name: Checkout Code |
80 | | - uses: actions/checkout@v1 |
81 | | - - name: Install Node |
82 | | - uses: actions/setup-node@v1 |
83 | | - with: |
84 | | - node-version: 16 |
85 | | - - name: Install Dependencies |
86 | | - run: yarn install --frozen-lockfile |
87 | | - - name: Run Tests |
88 | | - run: yarn workspace ember-css-modules test:ember |
89 | | - |
90 | | - test-try: |
91 | | - name: Ember Try |
92 | | - runs-on: ubuntu-latest |
93 | | - needs: [test-locked-deps] |
| 20 | + test: |
| 21 | + name: Test |
94 | 22 | strategy: |
| 23 | + fail-fast: true |
95 | 24 | matrix: |
96 | | - scenario: |
97 | | - - ember-release |
98 | | - - ember-beta |
99 | | - - ember-canary |
| 25 | + os: [ubuntu-latest, windows-latest] |
| 26 | + runs-on: ${{ matrix.os }} |
100 | 27 | steps: |
101 | 28 | - name: Checkout Code |
102 | | - uses: actions/checkout@v1 |
| 29 | + uses: actions/checkout@v4 |
103 | 30 | - name: Install Node |
104 | | - uses: actions/setup-node@v1 |
| 31 | + uses: actions/setup-node@v4 |
105 | 32 | with: |
106 | | - node-version: 16 |
107 | | - - name: Install Dependencies |
108 | | - run: yarn install --frozen-lockfile |
109 | | - - name: Try Scenario |
110 | | - run: yarn workspace ember-css-modules ember try:one ${{ matrix.scenario }} |
111 | | - |
112 | | - test-packages: |
113 | | - name: Test Packages |
114 | | - runs-on: ubuntu-latest |
115 | | - needs: [test-locked-deps] |
116 | | - steps: |
117 | | - - name: Checkout Code |
118 | | - uses: actions/checkout@v1 |
119 | | - - name: Install Node |
120 | | - uses: actions/setup-node@v1 |
| 33 | + node-version-file: package.json |
| 34 | + - name: Load Cached Dependencies |
| 35 | + uses: actions/cache@v4 |
121 | 36 | with: |
122 | | - node-version: 16 |
| 37 | + enableCrossOsArchive: true |
| 38 | + path: | |
| 39 | + node_modules |
| 40 | + packages/*/node_modules |
| 41 | + test-packages/*/node_modules |
| 42 | + key: npm-${{ matrix.os }}-${{ hashFiles('yarn.lock') }} |
| 43 | + restore-keys: |
| 44 | + npm-${{ matrix.os }}- |
| 45 | + npm- |
123 | 46 | - name: Install Dependencies |
124 | 47 | run: yarn install --frozen-lockfile |
125 | | - - name: Embroider App |
126 | | - run: yarn workspace embroider-app test:ember |
127 | | - - name: Sass App |
128 | | - run: yarn workspace sass-app test:ember |
129 | | - - name: Plugin Addon |
130 | | - run: yarn workspace plugin-addon test:ember |
131 | | - - name: Octane Addon |
132 | | - run: yarn workspace octane-addon test |
133 | | - - name: Octane Addon With Custom moduleName |
134 | | - run: yarn workspace @my-namespace/octane-addon test |
| 48 | + - name: Build |
| 49 | + run: yarn build |
| 50 | + - name: v1 app with `ember-css-modules` and classic build |
| 51 | + run: yarn workspace app-v1-ecm test:ember |
| 52 | + - name: v1 app with `ember-css-modules` and `@embroider/webpack` |
| 53 | + env: { EMBROIDER: 'true' } |
| 54 | + run: yarn workspace app-v1-ecm test:ember |
| 55 | + - name: v1 app with `ember-local-class` and `ember-auto-import` |
| 56 | + run: yarn workspace app-v1-elc test:ember |
| 57 | + - name: v1 app with `ember-local-class` and `@embroider/webpack` |
| 58 | + env: { EMBROIDER: 'true' } |
| 59 | + run: yarn workspace app-v1-elc test:ember |
| 60 | + - name: v2 app |
| 61 | + run: yarn workspace app-v2 test:ember |
0 commit comments