From 5ef7795c67d12185cd64e231b9415b8c5ca69790 Mon Sep 17 00:00:00 2001 From: hughcrt Date: Fri, 5 Apr 2024 13:13:38 -0300 Subject: [PATCH] test --- .github/workflows/run-tests.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a6fdf97e..cb325a8e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,9 +1,10 @@ name: Run tests on: - push: - branches-ignore: - - "main" + push + # push: + # branches-ignore: + # - "main" jobs: run-tests: @@ -16,7 +17,6 @@ jobs: env: cache-name: cache-node-modules with: - # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | @@ -24,12 +24,27 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- + - name: Cache Playwright binaries + uses: actions/cache@v3 + id: playwright-cache + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-playwright- + + - name: Install Playwright + if: steps.playwright-cache.outputs.cache-hit != 'true' + run: npx playwright install --with-deps + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} name: List the state of node modules continue-on-error: true run: npm list + - name: Install dependencies - run: npm ci && npx playwright install --with-deps + run: npm ci + - name: Start backend env: DATABASE_URL: ${{ secrets.DATABASE_URL }}