feat: add support for access packages in policy editor #6959
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 pr | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
paths: | |
- 'frontend/**' | |
- '!frontend/stats/**' | |
- 'backend/**' | |
- '.github/workflows/run-playwright-on-pr.yaml' | |
- 'compose.yaml' | |
- 'Dockerfile' | |
- 'gitea/**' | |
- 'package.json' | |
- 'development/**' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
playwright-tests: | |
name: Build environment and run e2e test | |
timeout-minutes: 25 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checking Out Code' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate .env file | |
run: | | |
echo PLAYWRIGHT_TEST_APP=autodeploy-v3 >> .env | |
echo DEVELOP_APP_DEVELOPMENT=0 >> .env | |
echo DEVELOP_RESOURCE_ADMIN=0 >> .env | |
echo DEVELOP_BACKEND=0 >> .env | |
echo DEVELOP_DASHBOARD=0 >> .env | |
echo DEVELOP_PREVIEW=0 >> .env | |
echo GITEA_ADMIN_PASS=g9wDIG@6gf >> .env | |
echo GITEA_ADMIN_USER=localg1iteaadmin >> .env | |
echo GITEA_CYPRESS_USER=cypress_testuser >> .env | |
echo GITEA_CYPRESS_PASS=g9wDIG@6gf >> .env | |
echo GITEA_ORG_USER=ttd >> .env | |
echo POSTGRES_PASSWORD=kyeDIG@eip >> .env | |
echo COMMIT= >> .env | |
echo IGNORE_DOCKER_DNS_LOOKUP=true >> .env | |
- name: Run setup.js script | |
run: | | |
node ./development/setup.js | |
- name: 'Installing Dependencies' | |
uses: ./.github/actions/yarn-install | |
- name: Playwright run | |
working-directory: frontend/testing/playwright | |
env: | |
environment: local | |
run: | | |
yarn setup:playwright | |
yarn playwright:test:all | |
- name: Store artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: playwright-screenshots | |
path: frontend/testing/playwright/test-results |