diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12818ef..3a5cdbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main] jobs: - lint-and-format: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 @@ -17,15 +17,42 @@ jobs: cache: 'npm' - run: npm ci + - run: npm run lint - - name: Lint - run: npm run lint + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' - - name: Format check - run: npm run format:check + - run: npm ci + - run: npm run format:check - - name: Type check - run: npm run compile + type-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' + + - run: npm ci + - run: npm run compile + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' + + - run: npm ci - name: Test with coverage run: npm run test:coverage