|
8 | 8 | types: [ opened, synchronize ] |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - build: |
| 11 | + test: |
| 12 | + timeout-minutes: 60 |
12 | 13 | runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - matrix: |
15 | | - node-version: [ 18.x, 20.x, 22.x ] |
16 | | - |
| 14 | + container: |
| 15 | + image: ghcr.io/serenity-js/playwright:v1.56.1-noble |
17 | 16 | steps: |
18 | | - - uses: actions/checkout@v6 |
19 | | - - name: Use Node.js ${{ matrix.node-version }} |
20 | | - uses: actions/setup-node@v6 |
21 | | - with: |
22 | | - node-version: ${{ matrix.node-version }} |
23 | | - - uses: actions/setup-java@v5 |
| 17 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 |
| 18 | + - uses: actions/setup-node@v6 |
24 | 19 | with: |
25 | | - distribution: 'temurin' |
26 | | - java-version: '17' |
27 | | - - name: Install Node Modules |
| 20 | + node-version: '22.21.1' |
| 21 | + - name: Setup Node Modules |
28 | 22 | uses: bahmutov/npm-install@v1 |
| 23 | + - name: Run Playwright tests |
| 24 | + run: npm test |
| 25 | + - uses: actions/upload-artifact@v5 |
| 26 | + if: always() |
29 | 27 | with: |
30 | | - install-command: npm ci |
31 | | - - name: Install Playwright Browsers |
32 | | - run: npx playwright install --with-deps |
33 | | - - run: npm run lint |
34 | | - - run: npm test |
35 | | - env: |
36 | | - CI: true |
| 28 | + name: serenity-report |
| 29 | + path: target/site/serenity |
| 30 | + retention-days: 30 |
| 31 | + |
| 32 | + - name: Move Playwright reports |
| 33 | + run: mv playwright-report target/site/playwright |
37 | 34 |
|
38 | 35 | - name: GitHub Pages |
| 36 | + if: github.ref == 'refs/heads/main' |
39 | 37 | uses: JamesIves/github-pages-deploy-action@v4.7.4 |
40 | | - if: matrix.node-version == '22.x' && github.ref == 'refs/heads/main' |
41 | 38 | with: |
42 | 39 | branch: gh-pages |
43 | | - folder: target/site/serenity |
| 40 | + folder: target/site |
44 | 41 | clean: true |
0 commit comments