diff --git a/.github/workflows/build-deploy-at.yml b/.github/workflows/build-deploy-at.yml index b1db22aa..fa7d7181 100644 --- a/.github/workflows/build-deploy-at.yml +++ b/.github/workflows/build-deploy-at.yml @@ -84,6 +84,9 @@ jobs: uses: "./.github/workflows/template-test-playwright.yml" with: environment: ${{ matrix.environment }} + secrets: + USERNAME_TEST_API: ${{ secrets.USERNAME_TEST_API }} + PASSWORD_TEST_API: ${{ secrets.PASSWORD_TEST_API }} diff --git a/.github/workflows/scheduled-playwright.yml b/.github/workflows/scheduled-playwright.yml index 21c1feb2..78dc8231 100644 --- a/.github/workflows/scheduled-playwright.yml +++ b/.github/workflows/scheduled-playwright.yml @@ -2,10 +2,10 @@ name: Playwright tests (Authentication) on: schedule: - # Runs at 7:00 AM UTC every day - - cron: "0 7 * * *" - # Runs at 1:00 PM UTC every day - - cron: "0 13 * * *" + # Runs at 6:00 AM UTC every day + - cron: "0 6 * * *" + # Runs at 12:00 PM UTC every day + - cron: "0 12 * * *" jobs: playwright-scheduled: diff --git a/.github/workflows/template-test-playwright.yml b/.github/workflows/template-test-playwright.yml index e4dba71a..68dc4a66 100644 --- a/.github/workflows/template-test-playwright.yml +++ b/.github/workflows/template-test-playwright.yml @@ -45,9 +45,10 @@ jobs: curl -X POST -H 'Content-type: application/json' --data '{ "text": ":playwright: Frontend-tester feilet i testmiljø:`${{ inputs.environment }}` på repo: `${{ github.repository }}`. Mer detaljer her: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' ${{ secrets.SLACK_WEBHOOK_URL }} + - uses: actions/upload-artifact@v4 if: failure() with: - name: playwright-report - path: frontend/playwright/test-results/${{ inputs.environment }} + name: playwright-report-${{ inputs.environment }}-${{ github.run_id }} + path: frontend/playwright/test-results/${{ inputs.environment }}/${{ github.run_id }} retention-days: 30