-
Notifications
You must be signed in to change notification settings - Fork 22
54 lines (43 loc) · 1.47 KB
/
test.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test staticSearch
on:
push:
repository_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: false
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
# First checkout this repo
- name: Self checkout
uses: actions/checkout@v4
# Build everything
- name: Run test
run: ant -f ${{ github.workspace }}/build.xml test
browser:
name: Browser Test
runs-on: ubuntu-latest
steps:
# First checkout this repo
- name: Self checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
- name: Install Playwright
run: npm install @playwright/test @types/node
- name: Install Browsers
run: npx playwright install --with-deps chromium
# Build everything
- name: Run test
run: ant -f ${{ github.workspace }}/build.xml test
- name: Run Playwright Tests
run: npx playwright test --config ${{ github.workspace }}/ci/playwright.config.js
- name: Save test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: ${{ github.workspace }}/ci/test-results
retention-days: 30