Skip to content

Add pluggable ABAC engine for Payload #55

Add pluggable ABAC engine for Payload

Add pluggable ABAC engine for Payload #55

Workflow file for this run

name: CI E2E
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Install Playwright browsers
run: pnpm --filter @shefing/dev-app exec playwright install --with-deps chromium
- name: Permit runner to access MongoDB Atlas
uses: textbook/atlas-ip@v1
with:
atlas-private-key: ${{ secrets.ATLAS_PRIVATE_KEY }}
atlas-public-key: ${{ secrets.ATLAS_PUBLIC_KEY }}
group-id: ${{ vars.ATLAS_GROUP_ID }}
- name: Build test-app
run: pnpm --filter @shefing/dev-app build
env:
DATABASE_URL: ${{ secrets.MONGODB_URI }}
PAYLOAD_SECRET: ${{ secrets.PAYLOAD_SECRET }}
- name: Run Playwright E2E tests
run: pnpm --filter @shefing/dev-app test:e2e
env:
CI: true
DATABASE_URL: ${{ secrets.MONGODB_URI }}
PAYLOAD_SECRET: ${{ secrets.PAYLOAD_SECRET }}
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: test-app/playwright-report/