-
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1013 Bytes
/
main.yml
File metadata and controls
40 lines (37 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [ opened, synchronize ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: ghcr.io/serenity-js/playwright:v1.58.1-noble
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@v6
with:
node-version: '24.14.0'
- name: Setup Node Modules
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Run tests
run: npm test
- uses: actions/upload-artifact@v7
if: always()
with:
name: serenity-report
path: target/site/serenity
retention-days: 30
- name: GitHub Pages
if: always() && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
branch: gh-pages
folder: target/site/serenity
clean: true