Skip to content

Commit

Permalink
fix(ci): remove test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Nov 9, 2023
1 parent 6fd7fcf commit 97e5a57
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,26 @@ jobs:
uses: ./.github/actions/setup
- name: Run the script
run: ${{ matrix.script }}
test-build:
name: Test build
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
needs: [scripts]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Setup environment
uses: ./.github/actions/setup
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Build
run: pnpm run test:build

# Disabled because not enough RAM.
# test-build:
# name: Test build
# runs-on: ubuntu-latest
# if: ${{ github.ref != 'refs/heads/main' }}
# needs: [scripts]
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# uses: ./.github/actions/setup
# - uses: actions/cache@v3
# with:
# path: |
# ${{ github.workspace }}/.next/cache
# # Generate a new cache whenever packages or source files change.
# key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
# # If source files changed but packages didn't, rebuild from a prior cache.
# restore-keys: |
# ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
# - name: Build
# run: pnpm run test:build

0 comments on commit 97e5a57

Please sign in to comment.