Skip to content

Commit a457bc7

Browse files
committed
ci(github): use the official Serenity/JS Docker image
1 parent fc5d50d commit a457bc7

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,34 @@ on:
88
types: [ opened, synchronize ]
99

1010
jobs:
11-
build:
11+
test:
12+
timeout-minutes: 60
1213
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
1716
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
2419
with:
25-
distribution: 'temurin'
26-
java-version: '17'
27-
- name: Install Node Modules
20+
node-version: '22.21.1'
21+
- name: Setup Node Modules
2822
uses: bahmutov/npm-install@v1
23+
- name: Run Playwright tests
24+
run: npm test
25+
- uses: actions/upload-artifact@v5
26+
if: always()
2927
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
3734

3835
- name: GitHub Pages
36+
if: github.ref == 'refs/heads/main'
3937
uses: JamesIves/github-pages-deploy-action@v4.7.4
40-
if: matrix.node-version == '22.x' && github.ref == 'refs/heads/main'
4138
with:
4239
branch: gh-pages
43-
folder: target/site/serenity
40+
folder: target/site
4441
clean: true

0 commit comments

Comments
 (0)