diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index f2ee229..48bf098 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -74,4 +74,25 @@ jobs: node_modules key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - name: Build project - run: npm run build \ No newline at end of file + run: npm run build + + playwright: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Restore node_modules from cache + uses: actions/cache@v4 + with: + path: | + node_modules + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + - name: Install dependencies + run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test \ No newline at end of file