Skip to content

Commit e32dccf

Browse files
committed
Update CI configuration
1 parent 552d057 commit e32dccf

File tree

2 files changed

+24
-108
lines changed

2 files changed

+24
-108
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -12,123 +12,36 @@ on:
1212
tags:
1313
- '*'
1414

15-
# early issue detection: run CI weekly on Sundays
16-
schedule:
17-
- cron: '0 6 * * 0'
18-
1915
env:
2016
CI: true
2117

2218
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]
19+
test:
20+
name: Test Packages
9421
strategy:
9522
matrix:
96-
scenario:
97-
- ember-release
98-
- ember-beta
99-
- ember-canary
100-
steps:
101-
- name: Checkout Code
102-
uses: actions/checkout@v1
103-
- name: Install Node
104-
uses: actions/setup-node@v1
105-
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]
23+
os: [ubuntu-latest, windows-latest]
24+
runs-on: ${{ matrix.os }}
11625
steps:
11726
- name: Checkout Code
118-
uses: actions/checkout@v1
27+
uses: actions/checkout@v4
11928
- name: Install Node
120-
uses: actions/setup-node@v1
29+
uses: actions/setup-node@v4
12130
with:
122-
node-version: 16
31+
node-version-file: package.json
12332
- name: Install Dependencies
12433
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
34+
- name: Build
35+
run: yarn build
36+
- name: v1 app with `ember-css-modules` and classic build
37+
run: yarn workspace app-v1-ecm test:ember
38+
- name: v1 app with `ember-css-modules` and `@embroider/webpack`
39+
env: { EMBROIDER: 'true' }
40+
run: yarn workspace app-v1-ecm test:ember
41+
- name: v1 app with `ember-local-class` and `ember-auto-import`
42+
run: yarn workspace app-v1-elc test:ember
43+
- name: v1 app with `ember-local-class` and `@embroider/webpack`
44+
env: { EMBROIDER: 'true' }
45+
run: yarn workspace app-v1-elc test:ember
46+
- name: v2 app
47+
run: yarn workspace app-v2 test:ember

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test-packages/addon-v1",
1111
"test-packages/addon-v2"
1212
],
13+
"scripts": {
14+
"build": "yarn workspace glimmer-local-class-transform prepare && yarn workspace addon-v2 build"
15+
},
1316
"volta": {
1417
"node": "22.15.0",
1518
"yarn": "1.22.22"

0 commit comments

Comments
 (0)