deps: update docker/metadata-action action to v6.1.0 #3752
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2023 Double Open Oy | |
| # | |
| # SPDX-License-Identifier: MIT | |
| name: Playwright Tests | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| env: | |
| DATABASE_URL: ${{ vars.DATABASE_URL }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24.16.0 | |
| cache: "npm" | |
| - name: Enable Corepack | |
| run: npm install corepack@latest && corepack enable | |
| - name: Install dependencies for root | |
| run: npm i --workspaces=false | |
| - name: Install dependencies for the database package | |
| run: npm i --workspace packages/database | |
| - name: Run prisma generate | |
| run: npm run db:generate | |
| - name: Build images | |
| run: docker compose build | |
| - name: Start the testing environment | |
| run: docker compose up api clearance-ui scanner-worker createbuckets -d | |
| - name: Seed the database and populate the spaces bucket | |
| run: npm run db:migrate:reset | |
| - name: Run Playwright tests | |
| run: docker compose up playwright-tests --abort-on-container-exit --exit-code-from playwright-tests | |
| - name: Print Docker Compose logs | |
| run: docker compose logs | |
| if: failure() | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-artifacts/clearance_ui | |
| retention-days: 30 |