-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1010 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
ci:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/update-cache
- name: Debug github action ref
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Build
run : npm run build
- name: Test doc build
run: npm run docs:build
- name: Run Playwright tests
run: |
npx playwright test --reporter=playwright-ctrf-json-reporter --trace=retain-on-failure
ls -als test-results
- name: Publish Test Summary Results
run: npx github-actions-ctrf ctrf/ctrf-report.json
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test-results
path: |
test-results/
retention-days: 30