fix(edge-page): Job display enhancement for failed and in progress by… #2303
This file contains 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
name: End to End Tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
workflow_dispatch: | |
inputs: | |
baseUrl: | |
description: 'Base URL of UI' | |
required: true | |
defaults: | |
run: | |
working-directory: ./code | |
jobs: | |
e2e-test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.42.1-jammy | |
env: | |
TZ: Europe/Zurich | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: 2.11.2 | |
- name: Install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Await CF Pages | |
if: github.event_name == 'pull_request' || github.event_name == 'push' | |
uses: WalshyDev/cf-pages-await@v1 | |
id: pages-action | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: 'ed40269bd7a426334d38642675bcd393' | |
project: 'ui-nuvla-prev' | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
commitHash: ${{ github.sha }} | |
- name: Run Playwright tests | |
run: npx playwright test | |
env: | |
UI_BASE_URL: ${{ steps.pages-action.outputs.alias || github.event.inputs.baseUrl }} | |
UI_E2E_TEST_USERNAME: ${{ secrets.UI_E2E_TEST_USERNAME }} | |
UI_E2E_TEST_PASSWORD: ${{ secrets.UI_E2E_TEST_PASSWORD }} | |
CF_CLIENT_SECRET: ${{ secrets.CF_CLIENT_SECRET }} | |
CF_CLIENT_ID: ${{ secrets.CF_CLIENT_ID }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright | |
path: code/playwright-report/ | |
retention-days: 30 | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-logout | |
path: code/playwright-report/ | |
retention-days: 30 |