Update dependency vanilla-framework to v4.21.0 #573
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: Playwright Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
services: | |
valkey: | |
image: valkey/valkey | |
options: >- | |
--health-cmd "valkey-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_PASSWORD: postgres | |
ports: | |
- 5432:5432 | |
env: | |
DISABLE_SSO: True | |
SECRET_KEY: secret_key | |
VALKEY_HOST: localhost | |
VALKEY_PORT: 6379 | |
GH_TOKEN: token | |
REPO_ORG: https://github.com/canonical | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres | |
GOOGLE_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
GOOGLE_PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }} | |
JIRA_EMAIL: [email protected] | |
JIRA_TOKEN: jiratoken | |
JIRA_URL: https://example.atlassian.net | |
JIRA_LABELS: somelabel | |
JIRA_COPY_UPDATES_EPIC: WD-9999999 | |
GOOGLE_DRIVE_FOLDER_ID: folderid | |
COPYDOC_TEMPLATE_ID: templateid | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- name: Install node dependencies | |
run: yarn | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: | | |
yarn playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |