Add pluggable ABAC engine for Payload #55
This file contains hidden or 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: 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/ |