Skip to content

Commit

Permalink
Add defaults for integration test run schedule (#63684)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored Mar 25, 2024
1 parent 3a50598 commit cd46c22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: Setup Next.js build
uses: ./.github/workflows/setup-nextjs-build.yml
with:
version: ${{ inputs.version }}
version: ${{ inputs.version || 'canary' }}

# Actual test scheduling. These jobs mimic the same jobs in Next.js repo,
# which we do allow some of duplications to make it easier to update if upstream changes.
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
id: restore-build
with:
path: ./*
key: ${{ inputs.version }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt}}-${{ github.run_number }}
key: ${{ inputs.version || 'canary' }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt}}-${{ github.run_number }}
fail-on-cache-miss: true

- name: Enable corepack and install yarn
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
id: restore-build
with:
path: ./*
key: ${{ inputs.version }}-${{ github.sha }}
key: ${{ inputs.version || 'canary' }}-${{ github.sha }}
fail-on-cache-miss: true

- name: Enable corepack and install yarn
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Collect integration test stat
uses: ./.github/actions/next-integration-stat
with:
diff_base: ${{ inputs.diff_base }}
diff_base: ${{ inputs.diff_base || 'none' }}

- name: Store artifacts
uses: actions/upload-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/turbopack-nextjs-dev-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: Setup Next.js build
uses: ./.github/workflows/setup-nextjs-build.yml
with:
version: ${{ inputs.version }}
version: ${{ inputs.version || 'canary' }}

# Actual test scheduling. These jobs mimic the same jobs in Next.js repo,
# which we do allow some of duplications to make it easier to update if upstream changes.
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
id: restore-build
with:
path: ./*
key: ${{ inputs.version }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt}}-${{ github.run_number }}
key: ${{ inputs.version || 'canary' }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt}}-${{ github.run_number }}
fail-on-cache-miss: true

- name: Enable corepack and install yarn
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
id: restore-build
with:
path: ./*
key: ${{ inputs.version }}-${{ github.sha }}
key: ${{ inputs.version || 'canary' }}-${{ github.sha }}
fail-on-cache-miss: true

- name: Enable corepack and install yarn
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- name: Collect integration test stat
uses: ./.github/actions/next-integration-stat
with:
diff_base: ${{ inputs.diff_base }}
diff_base: ${{ inputs.diff_base || 'none' }}

- name: Store artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit cd46c22

Please sign in to comment.