diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 763ac5f..7fd3ece 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -7,6 +7,26 @@ on: branches: [main] jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: pnpm + + - name: Install deps + run: pnpm i --frozen-lockfile + + - name: Lint + run: pnpm lint + test: strategy: matrix: @@ -30,8 +50,5 @@ jobs: - name: Install deps run: pnpm i --frozen-lockfile - - name: Lint - run: pnpm lint - - name: Build run: pnpm build