|
12 | 12 | tags: |
13 | 13 | - '*' |
14 | 14 |
|
15 | | - # early issue detection: run CI weekly on Sundays |
16 | | - schedule: |
17 | | - - cron: '0 6 * * 0' |
18 | | - |
19 | 15 | env: |
20 | 16 | CI: true |
21 | 17 |
|
22 | 18 | 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 |
94 | 21 | strategy: |
95 | 22 | 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 }} |
116 | 25 | steps: |
117 | 26 | - name: Checkout Code |
118 | | - uses: actions/checkout@v1 |
| 27 | + uses: actions/checkout@v4 |
119 | 28 | - name: Install Node |
120 | | - uses: actions/setup-node@v1 |
| 29 | + uses: actions/setup-node@v4 |
121 | 30 | with: |
122 | | - node-version: 16 |
| 31 | + node-version-file: package.json |
123 | 32 | - name: Install Dependencies |
124 | 33 | 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 |
0 commit comments