analytics/.github/workflows/tracker.yml
Cenk Kücük 1a9dd0de90
Update Workflow Concurrency (#3359)
Ensures that only one workflow is running per branch at a time.

If you are working on a branch and push several commits in succession, any workflows in progress will be cancelled and only the last one will run.
2023-09-20 14:06:04 +02:00

29 lines
638 B
YAML

name: Tracker CI
on:
workflow_dispatch:
pull_request:
paths:
- 'tracker/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 15
runs-on: buildjet-4vcpu-ubuntu-2004
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm --prefix ./tracker ci
- name: Install Playwright Browsers
working-directory: ./tracker
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm --prefix ./tracker test