Test against Next.js 15.0.0-canary.35 #472
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: 'Test against Next.js release' | |
run-name: 'Test against Next.js ${{ inputs.version }}' | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Next.js version to test against' | |
required: true | |
type: string | |
env: | |
FORCE_COLOR: 3 # Diplay chalk colors | |
jobs: | |
test_against_nextjs_release: | |
name: CI (${{ inputs.version }}${{ matrix.base-path && ' basePath' || ''}}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
base-path: [false, '/base'] | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Next.js version ${{ inputs.version }} | |
run: pnpm add --filter e2e next@${{ inputs.version }} | |
- name: Run integration tests | |
run: pnpm run test | |
env: | |
BASE_PATH: ${{ matrix.base-path && matrix.base-path || '/' }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
E2E_NO_CACHE_ON_RERUN: ${{ github.run_attempt }} | |
- name: Save Cypress artifacts | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 | |
if: failure() | |
with: | |
path: packages/e2e/cypress/screenshots | |
name: ci-${{ inputs.version }}${{ matrix.base-path && '-basePath' || ''}} | |
- uses: 47ng/actions-slack-notify@main | |
name: Notify on Slack | |
if: always() | |
with: | |
status: ${{ job.status }} | |
jobName: next@${{ inputs.version }}${{ matrix.base-path && ' basePath' || ''}} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
invalidate-isr-cache: | |
name: Invalidate ISR cache | |
runs-on: ubuntu-latest | |
needs: test_against_nextjs_release | |
if: ${{ always() }} | |
steps: | |
- name: Invalidate ISR cache for GitHub Actions status on landing page | |
run: curl -s "https://nuqs.47ng.com/api/isr?tag=github-actions-status&token=${{ secrets.ISR_TOKEN }}" | |
analyse-release: | |
runs-on: ubuntu-latest | |
name: Check for app router changes | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check for changes in app router | |
run: ./next-release-analyser.mjs --version ${{ inputs.version }} | |
working-directory: packages/scripts | |
env: | |
MAILPACE_API_TOKEN: ${{ secrets.MAILPACE_API_TOKEN }} | |
EMAIL_ADDRESS_TO: ${{ secrets.EMAIL_ADDRESS_TO }} | |
EMAIL_ADDRESS_FROM: ${{ secrets.EMAIL_ADDRESS_FROM }} |