diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91187ac5e..2b6f59d98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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) @@ -45,7 +40,7 @@ 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 @@ -53,6 +48,9 @@ jobs: - 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 diff --git a/next.config.js b/next.config.js index 9d4af0782..dd301aa30 100644 --- a/next.config.js +++ b/next.config.js @@ -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, + }, });