Skip to content

Add AI image detection, uploads, and provenance templates #2054

Add AI image detection, uploads, and provenance templates

Add AI image detection, uploads, and provenance templates #2054

Workflow file for this run

name: "Pull Request"
on:
pull_request: # this action runs in an untrusted but secure context with no secrets
types:
- opened
- reopened
- synchronize
- labeled
env:
PR_ID_FILE: "_pr_id.txt"
PR_ID: ${{ github.event.number }}
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 20
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-check
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Run checks
run: pnpm -w check
- name: Run tests
run: pnpm -w test
- name: Install Playwright browser
run: pnpm exec playwright install --with-deps chromium
- name: Run E2E tests
run: pnpm test:e2e
- name: Save PR ID
run: echo "$PR_ID" > ${{ env.PR_ID_FILE }}
- name: Upload PR ID
uses: actions/upload-artifact@v4
with:
name: pr_id
path: ${{ env.PR_ID_FILE }}