2022-11-04 20:04:13 -07:00
|
|
|
name: Browser Tests
|
|
|
|
|
2022-11-23 15:04:20 -08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2023-01-12 05:11:13 +01:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
|
|
|
pull_request:
|
2022-11-23 15:04:20 -08:00
|
|
|
paths:
|
2023-01-12 05:11:13 +01:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
2023-03-17 18:24:17 -07:00
|
|
|
|
2022-11-04 20:04:13 -07:00
|
|
|
jobs:
|
|
|
|
cypress-run:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-23 15:04:20 -08:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
2023-01-04 22:15:10 -08:00
|
|
|
|
2022-11-04 20:04:13 -07:00
|
|
|
- name: Checkout
|
2022-11-30 01:20:12 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-12-10 18:33:50 -08:00
|
|
|
|
2023-03-17 18:24:17 -07:00
|
|
|
- uses: actions/setup-node@v3
|
2022-11-04 20:04:13 -07:00
|
|
|
with:
|
2023-03-17 18:24:17 -07:00
|
|
|
node-version: 18.9.0
|
2023-01-04 22:15:10 -08:00
|
|
|
|
2023-02-15 14:46:45 -08:00
|
|
|
- name: Cache node modules
|
2023-03-14 19:13:59 -07:00
|
|
|
uses: actions/cache@v3
|
2023-02-15 14:46:45 -08: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-03-17 23:25:12 -07:00
|
|
|
- uses: actions/setup-go@v4
|
2023-03-17 18:24:17 -07:00
|
|
|
with:
|
2023-03-24 12:50:52 -07:00
|
|
|
go-version: '1.20'
|
2023-03-17 18:24:17 -07:00
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Install Google Chrome
|
2023-10-04 23:49:46 -07:00
|
|
|
run: sudo apt-get update && sudo apt-get install google-chrome-stable=116.0.5845.96-1
|
2023-03-17 18:24:17 -07:00
|
|
|
|
2022-11-04 20:04:13 -07:00
|
|
|
- name: Run Browser tests
|
2022-12-10 18:33:50 -08:00
|
|
|
uses: nick-fields/retry@v2
|
|
|
|
with:
|
2023-01-16 11:36:40 -08:00
|
|
|
timeout_minutes: 20
|
2022-12-10 18:33:50 -08:00
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/browser && ./run.sh
|