Revert
parent
5a597644a0
commit
0d639fdeb9
|
@ -7,23 +7,28 @@ on:
|
|||
required: true
|
||||
|
||||
jobs:
|
||||
e2e-test:
|
||||
name: E2E tests
|
||||
setup:
|
||||
name: Yarn install & cache
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: yarn-install-${{ github.sha }}
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.node_version }}
|
||||
- name: Restore node_modules from cache
|
||||
node-version: ${{ secrets.NODE_VERSION }}
|
||||
# node_module cache helps to avoid 1 minute copying from yarn cache on every job run
|
||||
- name: node_modules cache
|
||||
id: node-modules-cache
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: node-modules-yarn
|
||||
cache-fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}
|
||||
cache-key: ${{ secrets.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-fingerprint }}
|
||||
- run: yarn playwright install
|
||||
- name: Run tests
|
||||
run: yarn e2e
|
||||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-key }}
|
||||
restore-keys: ${{ runner.os }}-${{ env.cache-name }}-
|
||||
- name: Yarn install
|
||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||
run: yarn install --prefer-offline --frozen-lockfile
|
||||
|
|
Loading…
Reference in New Issue