-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.01 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
# SPDX-FileCopyrightText: © 2024 Kevin Lu
# SPDX-Licence-Identifier: GPL-3.0-or-later
name: Test WebExtension
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# Daily after 12:00 UTC, depending on Actions availability
- cron: "0 12 * * *"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
e2e-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-13
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn --no-lockfile
- run: yarn playwright install --with-deps
- run: yarn playwright test
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: playwright-report-${{ matrix.os }}
path: test/playwright-report/