diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 37f58f7b..ea4f404b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -120,3 +120,35 @@ jobs: uses: codecov/codecov-action@v3.1.4 with: flags: frontend + + frontend-test-playwright: + name: "Frontend test playwright" + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v4.1.0 + + - name: "Cache NPM dependencies" + uses: actions/cache@v3.3.2 + with: + path: "~/.npm" + key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} + restore-keys: | + npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} + npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- + npm-dependencies-${{ runner.os }}- + + - name: "Install NPM dependencies" + run: | + npm ci + + - name: "Run tests" + run: | + npm run _test:frontend-playwright + + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30