2022-11-05 04:04:13 +01:00
|
|
|
name: Browser Tests
|
|
|
|
|
2022-11-24 00:04:20 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2023-01-12 05:11:13 +01:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
|
|
|
pull_request:
|
2022-11-24 00:04:20 +01:00
|
|
|
paths:
|
2023-01-12 05:11:13 +01:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
2023-03-18 02:24:17 +01:00
|
|
|
|
2022-11-05 04:04:13 +01:00
|
|
|
jobs:
|
|
|
|
cypress-run:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-24 00:04:20 +01:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
2023-01-05 07:15:10 +01:00
|
|
|
|
2022-11-05 04:04:13 +01:00
|
|
|
- name: Checkout
|
2023-10-07 22:52:25 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-12-11 03:33:50 +01:00
|
|
|
|
2023-10-29 01:16:20 +02:00
|
|
|
- uses: actions/setup-node@v4
|
2022-11-05 04:04:13 +01:00
|
|
|
with:
|
2024-01-21 03:35:07 +01:00
|
|
|
node-version: latest
|
2023-01-05 07:15:10 +01:00
|
|
|
|
2023-02-15 23:46:45 +01:00
|
|
|
- name: Cache node modules
|
2023-03-15 03:13:59 +01:00
|
|
|
uses: actions/cache@v3
|
2023-02-15 23:46:45 +01:00
|
|
|
env:
|
|
|
|
cache-name: cache-node-modules-browser-tests
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/browser/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
${{ runner.os }}-build-
|
|
|
|
${{ runner.os }}-
|
|
|
|
|
2023-12-20 02:51:40 +01:00
|
|
|
- uses: actions/setup-go@v5
|
2023-03-18 02:24:17 +01:00
|
|
|
with:
|
2023-10-18 03:32:50 +02:00
|
|
|
go-version: '1.21'
|
2023-03-18 02:24:17 +01:00
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Install Google Chrome
|
2023-10-05 08:57:50 +02:00
|
|
|
run: sudo apt-get update && sudo apt-get install google-chrome-stable
|
2023-03-18 02:24:17 +01:00
|
|
|
|
2022-11-05 04:04:13 +01:00
|
|
|
- name: Run Browser tests
|
2022-12-11 03:33:50 +01:00
|
|
|
uses: nick-fields/retry@v2
|
|
|
|
with:
|
2023-01-16 20:36:40 +01:00
|
|
|
timeout_minutes: 20
|
2022-12-11 03:33:50 +01:00
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/browser && ./run.sh
|