mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
1a9dd0de90
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.
29 lines
638 B
YAML
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
|