Merge branch 'dev' into fixGroupLogs

This commit is contained in:
github-actions[bot] 2024-06-27 13:40:56 +00:00 • committed by GitHub
commit 5c148ae20b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +1,11 @@
name: Run Frontend Tests name: Run Frontend Tests
on: on:
workflow_dispatch: pull_request:
inputs: merge_group:
branch:
description: "Branch to run tests on"
required: true
type: string
env: env:
POETRY_VERSION: "1.8.2" POETRY_VERSION: "1.8.3"
NODE_VERSION: "21" NODE_VERSION: "21"
PYTHON_VERSION: "3.12" PYTHON_VERSION: "3.12"
# Define the directory where Playwright browsers will be installed. # Define the directory where Playwright browsers will be installed.
@ -18,7 +14,7 @@ env:
jobs: jobs:
setup-and-test: setup-and-test:
name: Run Frontend Tests on branch ${{ inputs.branch }} name: Run Playwright Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -31,8 +27,6 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
@ -54,14 +48,15 @@ jobs:
cd src/frontend cd src/frontend
npm ci npm ci
if: ${{ steps.setup-node.outputs.cache-hit != 'true' }} if: ${{ steps.setup-node.outputs.cache-hit != 'true' }}
- name: Get Playwright version
- name: Cache playwright binaries run: echo "PLAYWRIGHT_VERSION=$(jq '.devDependencies["@playwright/test"]' src/frontend/package.json -r)" >> $GITHUB_ENV
uses: actions/cache@v4 - name: Cache Playwright binaries
id: playwright-cache id: playwright-cache
uses: actions/cache@v4
with: with:
path: | path: ~/.cache/ms-playwright
~/.cache/ms-playwright key: playwright-browsers-${{ runner.os }}-${{ env.PLAYWRIGHT_VERSION }}
key: ${{ runner.os }}-playwright-${{ hashFiles('src/frontend/package-lock.json') }}
- name: Install Frontend dependencies - name: Install Frontend dependencies
run: | run: |
cd src/frontend cd src/frontend