|
43 | 43 |
|
44 | 44 | - name: Build |
45 | 45 | run: yarn build |
46 | | - |
| 46 | + |
47 | 47 | Build-Docs: |
48 | 48 | runs-on: ubuntu-latest |
49 | 49 | timeout-minutes: 60 |
@@ -83,83 +83,11 @@ jobs: |
83 | 83 | CI-WRAP-Test-Harness: |
84 | 84 | uses: ./.github/workflows/ci-wrap-test-harness.yaml |
85 | 85 |
|
86 | | - Test-Core: |
| 86 | + Test: |
87 | 87 | runs-on: ubuntu-latest |
88 | 88 | needs: CI-WRAP-Test-Harness |
89 | 89 | timeout-minutes: 60 |
90 | 90 | if: ${{ always() }} |
91 | | - steps: |
92 | | - - name: Checkout repository |
93 | | - uses: actions/checkout@v2 |
94 | | - |
95 | | - - name: Read .nvmrc |
96 | | - run: echo ::set-output name=NVMRC::$(cat .nvmrc) |
97 | | - id: nvm |
98 | | - |
99 | | - - name: Setup Node.js |
100 | | - uses: actions/setup-node@master |
101 | | - with: |
102 | | - node-version: '${{ steps.nvm.outputs.NVMRC }}' |
103 | | - |
104 | | - - name: Setup Python |
105 | | - uses: actions/setup-python@v4 |
106 | | - with: |
107 | | - python-version: '3.10' |
108 | | - |
109 | | - - name: Setup Poetry |
110 | | - uses: abatilo/actions-poetry@v2 |
111 | | - with: |
112 | | - poetry-version: '1.4.2' |
113 | | - |
114 | | - - name: Setup Go |
115 | | - uses: actions/setup-go@v3 |
116 | | - with: |
117 | | - go-version: '^1.13.1' |
118 | | - |
119 | | - - name: Install cue lang |
120 | | - run: go install cuelang.org/go/cmd/cue@latest |
121 | | - |
122 | | - - name: Check if cue is installed |
123 | | - run: cue version |
124 | | - |
125 | | - - name: Get yarn cache directory path |
126 | | - id: yarn-cache-dir-path |
127 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
128 | | - |
129 | | - - uses: actions/cache@v2 |
130 | | - with: |
131 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
132 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
133 | | - restore-keys: | |
134 | | - ${{ runner.os }}-yarn- |
135 | | -
|
136 | | - - name: Install dependencies |
137 | | - run: yarn install --nonInteractive --frozen-lockfile --prefer-offline |
138 | | - |
139 | | - - name: Build |
140 | | - run: yarn build |
141 | | - |
142 | | - - name: Get updated wrappers |
143 | | - if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }} |
144 | | - uses: actions/download-artifact@v3 |
145 | | - id: get-wrappers |
146 | | - with: |
147 | | - name: rebuilt-wrappers |
148 | | - path: ./wrappers |
149 | | - |
150 | | - - if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }} |
151 | | - run: | |
152 | | - rm -rf packages/test-cases/cases/wrappers |
153 | | - mv wrappers packages/test-cases/cases |
154 | | -
|
155 | | - - name: Test |
156 | | - run: yarn test:core |
157 | | - |
158 | | - Test-Client: |
159 | | - runs-on: ubuntu-latest |
160 | | - needs: CI-WRAP-Test-Harness |
161 | | - if: ${{ always() }} |
162 | | - timeout-minutes: 60 |
163 | 91 | steps: |
164 | 92 | - name: Checkout repository |
165 | 93 | uses: actions/checkout@v2 |
@@ -204,71 +132,4 @@ jobs: |
204 | 132 | mv wrappers packages/test-cases/cases |
205 | 133 |
|
206 | 134 | - name: Test |
207 | | - run: yarn test:client |
208 | | - |
209 | | - Test-Cli: |
210 | | - runs-on: ubuntu-latest |
211 | | - needs: CI-WRAP-Test-Harness |
212 | | - if: ${{ always() }} |
213 | | - timeout-minutes: 60 |
214 | | - steps: |
215 | | - - name: Checkout repository |
216 | | - uses: actions/checkout@v2 |
217 | | - |
218 | | - - name: Read .nvmrc |
219 | | - run: echo ::set-output name=NVMRC::$(cat .nvmrc) |
220 | | - id: nvm |
221 | | - |
222 | | - - name: Setup Node.js |
223 | | - uses: actions/setup-node@master |
224 | | - with: |
225 | | - node-version: '${{ steps.nvm.outputs.NVMRC }}' |
226 | | - |
227 | | - - uses: actions/setup-go@v3 |
228 | | - with: |
229 | | - go-version: '^1.13.1' |
230 | | - |
231 | | - - name: Install cue lang |
232 | | - run: go install cuelang.org/go/cmd/cue@latest |
233 | | - |
234 | | - - name: Check if cue is installed |
235 | | - run: cue version |
236 | | - |
237 | | - - name: Get yarn cache directory path |
238 | | - id: yarn-cache-dir-path |
239 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
240 | | - |
241 | | - - uses: actions/cache@v2 |
242 | | - with: |
243 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
244 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
245 | | - restore-keys: | |
246 | | - ${{ runner.os }}-yarn- |
247 | | -
|
248 | | - - name: Install dependencies |
249 | | - run: yarn install --nonInteractive --frozen-lockfile --prefer-offline |
250 | | - |
251 | | - - name: Build |
252 | | - run: yarn build |
253 | | - |
254 | | - - name: Get updated wrappers |
255 | | - if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }} |
256 | | - uses: actions/download-artifact@v3 |
257 | | - id: get-wrappers |
258 | | - with: |
259 | | - name: rebuilt-wrappers |
260 | | - path: ./wrappers |
261 | | - |
262 | | - - if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }} |
263 | | - run: | |
264 | | - rm -rf packages/test-cases/cases/wrappers |
265 | | - mv wrappers packages/test-cases/cases |
266 | | -
|
267 | | - - name: Test cli:unit |
268 | | - run: yarn test:cli:unit |
269 | | - |
270 | | - - name: Test cli:e2e:p1 |
271 | | - run: yarn test:cli:e2e:p1 |
272 | | - |
273 | | - - name: Test cli:e2e:p2 |
274 | | - run: yarn test:cli:e2e:p2 |
| 135 | + run: yarn test |
0 commit comments