mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Cache playwright
This commit is contained in:
parent
9f2a48e944
commit
5b089211d4
3 changed files with 29 additions and 1 deletions
7
.github/workflows/frontend-admin-tests.yml
vendored
7
.github/workflows/frontend-admin-tests.yml
vendored
|
@ -49,6 +49,13 @@ jobs:
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
- name: Cache playwright binaries
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: playwright-cache
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
||||||
- name: Only install direct dependencies
|
- name: Only install direct dependencies
|
||||||
run: pnpm config set auto-install-peers false
|
run: pnpm config set auto-install-peers false
|
||||||
#-
|
#-
|
||||||
|
|
21
.github/workflows/frontend-tests.yml
vendored
21
.github/workflows/frontend-tests.yml
vendored
|
@ -56,6 +56,13 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Create settings.json
|
name: Create settings.json
|
||||||
run: cp ./src/tests/settings.json settings.json
|
run: cp ./src/tests/settings.json settings.json
|
||||||
|
- name: Cache playwright binaries
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: playwright-cache
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
||||||
- name: Run the frontend tests
|
- name: Run the frontend tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -119,6 +126,13 @@ jobs:
|
||||||
run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
|
run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
|
||||||
- name: Create settings.json
|
- name: Create settings.json
|
||||||
run: cp ./src/tests/settings.json settings.json
|
run: cp ./src/tests/settings.json settings.json
|
||||||
|
- name: Cache playwright binaries
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: playwright-cache
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
||||||
- name: Run the frontend tests
|
- name: Run the frontend tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -160,6 +174,13 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
- name: Cache playwright binaries
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: playwright-cache
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
|
@ -74,7 +74,7 @@ jobs:
|
||||||
pnpm run test-ui --project=chromium
|
pnpm run test-ui --project=chromium
|
||||||
# On release, create release
|
# On release, create release
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
if: ${{startsWith(github.ref, 'refs/tags/v') }}
|
#if: ${{startsWith(github.ref, 'refs/tags/v') }}
|
||||||
working-directory: bin
|
working-directory: bin
|
||||||
run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt
|
run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt
|
||||||
- name: Output changelog
|
- name: Output changelog
|
||||||
|
|
Loading…
Reference in a new issue