Skip to content

Commit b4fbbc9

Browse files
committed
add playwright workflow
1 parent c545795 commit b4fbbc9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,45 @@ jobs:
5959
- name: Build C++ examples
6060
working-directory: photonlib-cpp-examples
6161
run: ./gradlew build
62+
playwright-tests:
63+
name: "Playwright E2E tests"
64+
runs-on: ubuntu-22.04
65+
needs: [validation]
66+
steps:
67+
# Checkout code.
68+
- name: Checkout code
69+
uses: actions/checkout@v4
70+
with:
71+
fetch-depth: 0
72+
- name: Fetch tags
73+
run: git fetch --tags --force
74+
- name: Install Java 17
75+
uses: actions/setup-java@v4
76+
with:
77+
java-version: 17
78+
distribution: temurin
79+
- name: Install pnpm
80+
uses: pnpm/action-setup@v4
81+
with:
82+
version: 10
83+
- name: Setup Node.js
84+
uses: actions/setup-node@v4
85+
with:
86+
node-version: 22
87+
- name: Install mrcal deps
88+
run: sudo apt-get update && sudo apt-get install -y libcholmod3 liblapack3 libsuitesparseconfig5
89+
- name: Install and run Playwright tests
90+
run: |
91+
cd photon-client
92+
pnpm install
93+
pnpm exec playwright install --with-deps
94+
pnpm exec playwright test
95+
- uses: actions/upload-artifact@v4
96+
if: ${{ !cancelled() }}
97+
with:
98+
name: playwright-report
99+
path: playwright-report/
100+
retention-days: 30
62101
build-gradle:
63102
name: "Gradle Build"
64103
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)