diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 21b6bf3..424dbd6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,20 +1,31 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: -env: - DATABASE_URL: "https://fake.com" +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm - - name: Install Dependencies - run: npm install -g pnpm && pnpm install + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Typecheck run: pnpm typecheck @@ -22,5 +33,8 @@ jobs: - name: Lint run: pnpm lint - - name: Print Environment Variable - run: echo $MY_ENV_VAR + - name: Test + run: pnpm test + + - name: Build + run: pnpm build diff --git a/next.config.js b/next.config.js index 175c457..a815d91 100644 --- a/next.config.js +++ b/next.config.js @@ -9,10 +9,6 @@ const nextConfig = { { protocol: "https", hostname: "vod-secure.twitch.tv" }, ], }, - - typescript: { - ignoreBuildErrors: true, - }, }; const withMdx = require("@next/mdx")()(nextConfig);