Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Dec 25, 2023
1 parent 445b5f3 commit f612a90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
env:
NODE_ENV: test
NEXTAUTH_SECRET: supersecret
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -29,10 +25,9 @@ jobs:
with:
version: 8.5.1

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 20.x
# cache: 'pnpm' # You can active this cache when your repo has a lockfile

- name: Install deps (with cache)
Expand All @@ -45,14 +40,17 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/pnpm-lock.yaml') }}-nextjs
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-nextjs

- name: Setup Prisma
run: pnpm prebuild

- name: Build and test
run: pnpm build && pnpm test-start && pnpm test-dev

- name: Check types
run: pnpm tsc

- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ module.exports = getConfig({
},
/** We run eslint as a separate task in CI */
eslint: { ignoreDuringBuilds: !!process.env.CI },
/** We run typechecking as a separate task in CI */
typescript: {
ignoreBuildErrors: true,
},
});

0 comments on commit f612a90

Please sign in to comment.