Revamp JoinRecords #146
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 | ||
permissions: read-all | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
test: | ||
name: Run Playwright Tests | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
services: | ||
minio: | ||
image: quay.io/minio/minio | ||
ports: | ||
- '9000:9000' | ||
- '9001:9001' | ||
volumes: | ||
- 'minio_data:/data' | ||
command: | | ||
Check failure on line 21 in .github/workflows/playwright.yml GitHub Actions / Playwright TestsInvalid workflow file
|
||
server /data | ||
environment: | ||
- MINIO_ROOT_USER=admin | ||
- MINIO_ROOT_PASSWORD=admin1234 | ||
- MINIO_DEFAULT_BUCKETS=meshdb-join-form-log | ||
- MINIO_ACCESS_KEY=sampleaccesskey | ||
- MINIO_SECRET_KEY=samplesecretkey | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | ||
with: | ||
node-version: lts/* | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
env: | ||
NEXT_PUBLIC_MESHDB_URL: https://127.0.0.1:8000 # Throwaway to make the mock work | ||
MESHDB_URL: https://127.0.0.1:8000 # Throwaway to make the mock work | ||
# We now check the JoinRecord stuff, so submit that too. | ||
S3_ENDPOINT: http://127.0.0.1:9000 | ||
S3_BUCKET_NAME: meshdb-join-form-log | ||
S3_BASE_NAME: dev-join-form-submissions | ||
S3_ACCESS_KEY: testaccesskey | ||
S3_SECRET_KEY: testsecretkey | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |