build before start

This commit is contained in:
Elio Bischof
2024-10-18 23:23:08 +02:00
parent 087e815472
commit 90f13b210e
2 changed files with 25 additions and 29 deletions

View File

@@ -56,14 +56,8 @@ jobs:
- name: Install Dependencies
run: CYPRESS_INSTALL_BINARY=0 pnpm install
# We build already here so we can fail fast if the build fails
- name: Build Production
run: pnpm build
if: ${{ matrix.command == 'test:acceptance' }}
- run: |
echo "CYPRESS_VERSION=$(pnpm list -r | grep cypress | cut -d ' ' -f 2)" >> $GITHUB_ENV
echo "PLAYWRIGHT_VERSION=$(npx playwright --version | cut -d ' ' -f 2)" >> $GITHUB_ENV
- run: echo "CYPRESS_VERSION=$(pnpm list -r | grep cypress | cut -d ' ' -f 2)" >> $GITHUB_ENV
if: ${{ matrix.command == 'test:integration' }}
- uses: actions/cache@v4.0.2
name: Setup Cypress binary cache
@@ -78,6 +72,9 @@ jobs:
run: pnpm install
if: ${{ matrix.command == 'test:integration' }}
- run: echo "PLAYWRIGHT_VERSION=$(npx playwright --version | cut -d ' ' -f 2)" >> $GITHUB_ENV
if: ${{ matrix.command == 'test:acceptance' }}
- uses: actions/cache@v4.0.2
name: Setup Playwright binary cache
with: