2022-08-04 11:50:09 +03:00
|
|
|
name: Tracker CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'tracker/**'
|
|
|
|
|
2023-09-20 15:06:04 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-08-04 11:50:09 +03:00
|
|
|
jobs:
|
2023-03-02 13:04:01 +03:00
|
|
|
test:
|
|
|
|
timeout-minutes: 15
|
2024-08-27 12:06:12 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-04 11:50:09 +03:00
|
|
|
steps:
|
2023-09-14 15:13:34 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-31 20:58:18 +03:00
|
|
|
- uses: actions/setup-node@v4
|
2022-08-04 11:50:09 +03:00
|
|
|
with:
|
2023-03-02 13:04:01 +03:00
|
|
|
node-version: 16
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm --prefix ./tracker ci
|
|
|
|
- name: Install Playwright Browsers
|
2022-08-04 11:50:09 +03:00
|
|
|
working-directory: ./tracker
|
2023-03-02 13:04:01 +03:00
|
|
|
run: npx playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
|
|
run: npm --prefix ./tracker test
|