|
6 | 6 | strategy:
|
7 | 7 | matrix:
|
8 | 8 | node: [18, 20]
|
9 |
| - strapi: [5.2, 5.3, 5.4] |
| 9 | + strapi: [5.6, 5.7, 5.8] |
10 | 10 | runs-on: ubuntu-latest
|
11 | 11 | steps:
|
12 | 12 | - uses: actions/checkout@v4
|
13 | 13 | - run: corepack enable
|
14 | 14 | - uses: actions/setup-node@v4
|
15 | 15 | with:
|
16 | 16 | node-version: ${{ matrix.node }}
|
17 |
| - cache: 'yarn' |
| 17 | + cache: 'npm' |
18 | 18 | - name: Install workspace dependencies
|
19 |
| - run: yarn |
| 19 | + run: npm ci |
20 | 20 | - name: Build strapi-plugin-translate
|
21 |
| - run: yarn workspace strapi-plugin-translate build |
| 21 | + run: npm run build --workspace strapi-plugin-translate |
22 | 22 | - name: Pack strapi-plugin-translate
|
23 |
| - run: yarn workspace strapi-plugin-translate pack -o strapi-plugin-translate.tgz |
| 23 | + run: | |
| 24 | + PACKAGE_NAME=$(npm pack --workspace strapi-plugin-translate | tail -n 1); |
| 25 | + echo "PACKAGE_NAME=${PACKAGE_NAME}" >> "$GITHUB_ENV" |
24 | 26 | - name: Copy playground to e2e folder
|
25 | 27 | run: cp -r playground e2e
|
26 | 28 | - name: Configure strapi version for e2e test
|
27 | 29 | run: VERSION=${{ matrix.strapi }} envsubst < e2e/templates/template.package.json > e2e/package.json
|
28 |
| - - name: Setup e2e folder to be a seperate workspace |
29 |
| - run: touch e2e/yarn.lock |
| 30 | + # - name: Setup e2e folder to be a seperate workspace |
| 31 | + # run: touch e2e/yarn.lock |
30 | 32 | - name: Install e2e dependencies
|
31 |
| - run: yarn install --no-immutable |
| 33 | + run: npm install |
32 | 34 | working-directory: e2e
|
33 | 35 | - name: Add local strapi-plugin-translate
|
34 |
| - run: yarn add ../plugin/strapi-plugin-translate.tgz |
| 36 | + run: npm install ../${PACKAGE_NAME} |
35 | 37 | working-directory: e2e
|
36 | 38 | - name: Build strapi for e2e tests
|
37 |
| - run: yarn build |
| 39 | + run: npm run build |
38 | 40 | working-directory: e2e
|
39 | 41 | - name: Run e2e tests
|
40 |
| - run: yarn e2e |
| 42 | + run: npm run e2e |
41 | 43 | working-directory: e2e
|
42 | 44 | - name: Upload cypress results on failure
|
43 | 45 | uses: actions/upload-artifact@v4
|
|
0 commit comments