Skip to content

Commit 8dfcf8a

Browse files
authored
prevent parallel deployment collisions in documentation workflow (#5183)
* prevent parallel deployment collisions in documentation workflow * ci: cache Playwright browsers and add concurrency to unit-tests
1 parent 1cea201 commit 8dfcf8a

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/deploy-documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
permissions:
913
contents: write
1014

.github/workflows/unit-tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Unit tests
22

33
on: pull_request
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
full_test_run:
711

@@ -18,6 +22,15 @@ jobs:
1822
- name: NPM install
1923
run: npm ci
2024

25+
- name: Cache Playwright browsers
26+
uses: actions/cache@v4
27+
id: playwright-cache
28+
with:
29+
path: ~/.cache/ms-playwright
30+
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-playwright-
33+
2134
- name: Install playwright browsers
2235
run: npx playwright install --with-deps
2336

0 commit comments

Comments
 (0)