2022-11-05 06:04:13 +03:00
|
|
|
name: Browser Tests
|
|
|
|
|
2022-11-24 02:04:20 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2023-01-12 07:11:13 +03:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
|
|
|
pull_request:
|
2022-11-24 02:04:20 +03:00
|
|
|
paths:
|
2023-01-12 07:11:13 +03:00
|
|
|
- 'web/**'
|
|
|
|
- 'test/automated/browser/**'
|
2023-03-18 04:24:17 +03:00
|
|
|
|
2022-11-05 06:04:13 +03:00
|
|
|
jobs:
|
|
|
|
cypress-run:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-24 02:04:20 +03:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
2023-01-05 09:15:10 +03:00
|
|
|
|
2024-09-05 23:50:59 +03:00
|
|
|
- name: Check out pull request code
|
2023-10-07 23:52:25 +03:00
|
|
|
uses: actions/checkout@v4
|
2024-09-05 23:50:59 +03:00
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
with:
|
|
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: github.event_name == 'push'
|
2022-12-11 05:33:50 +03:00
|
|
|
|
2023-10-29 02:16:20 +03:00
|
|
|
- uses: actions/setup-node@v4
|
2022-11-05 06:04:13 +03:00
|
|
|
with:
|
2024-10-19 21:51:23 +03:00
|
|
|
node-version: '22.9.0'
|
2023-01-05 09:15:10 +03:00
|
|
|
|
2023-02-16 01:46:45 +03:00
|
|
|
- name: Cache node modules
|
2024-03-04 05:45:28 +03:00
|
|
|
uses: actions/cache@v4
|
2023-02-16 01:46:45 +03: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 04:51:40 +03:00
|
|
|
- uses: actions/setup-go@v5
|
2023-03-18 04:24:17 +03:00
|
|
|
with:
|
2024-04-22 23:23:52 +03:00
|
|
|
go-version: '1.22'
|
2023-03-18 04:24:17 +03:00
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Install Google Chrome
|
2023-10-05 09:57:50 +03:00
|
|
|
run: sudo apt-get update && sudo apt-get install google-chrome-stable
|
2023-03-18 04:24:17 +03:00
|
|
|
|
2022-11-05 06:04:13 +03:00
|
|
|
- name: Run Browser tests
|
2024-04-10 04:23:40 +03:00
|
|
|
uses: nick-fields/retry@v3
|
2022-12-11 05:33:50 +03:00
|
|
|
with:
|
2023-01-16 22:36:40 +03:00
|
|
|
timeout_minutes: 20
|
2022-12-11 05:33:50 +03:00
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/browser && ./run.sh
|