diff --git a/.github/workflows/reusable-examples.yml b/.github/workflows/reusable-examples.yml index ca3e90696..40d0307d6 100644 --- a/.github/workflows/reusable-examples.yml +++ b/.github/workflows/reusable-examples.yml @@ -249,6 +249,48 @@ jobs: working-directory: examples/nextjs-14-decorate run: npm run build + nextjs-14-nextauth-4: + name: Next.js 14 + NextAuth 4 + runs-on: ubuntu-latest + permissions: + contents: read + steps: + # Environment security + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + disable-sudo: true + egress-policy: block + allowed-endpoints: > + fonts.googleapis.com:443 + fonts.gstatic.com:443 + github.com:443 + registry.npmjs.org:443 + + # Checkout + # Most toolchains require checkout first + - name: Checkout + uses: actions/checkout@v4 + + # Language toolchains + - name: Install Node + uses: actions/setup-node@v4.0.0 + with: + node-version: 20 + + # Workflow + + - name: Install dependencies + run: npm ci + + - name: Install example dependencies + working-directory: examples/nextjs-14-nextauth-4 + run: npm ci + + - name: Build + working-directory: examples/nextjs-14-nextauth-4 + run: npm run build + nextjs-14-openai: name: Next.js 14 + OpenAI runs-on: ubuntu-latest diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 09cf52c09..33f5b1b5d 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -66,5 +66,6 @@ merge: - Build examples / Next.js 14 + Clerk + Rate Limit - Build examples / Next.js 14 + Clerk + Shield - Build examples / Next.js 14 + Decorate + - Build examples / Next.js 14 + NextAuth 4 - Build examples / Next.js 14 + OpenAI - Build examples / Next.js 14 + Page Router + withArcjet