diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee07242..1f83043 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,18 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 cache: "npm" - name: Setup build cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{ github.workspace }}/.next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }} @@ -35,10 +35,18 @@ jobs: if: github.event_name == 'pull_request' run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose - - name: Format check + - name: Check formatting run: npm run format:check if: always() + - name: Lint code + run: npm run lint + if: always() + + - name: Check types + run: npm run types:check + if: always() + - name: Build run: npm run build if: always()