diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f815d49..c89534f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,34 @@ jobs: - name: Dependency review uses: actions/dependency-review-action@v3 + lint: + name: Lint + runs-on: 'ubuntu-latest' + permissions: + contents: read + steps: + - name: Check out repo + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Setup Node 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install dependencies + run: npm i --ignore-scripts + + - name: Install peerdeps + run: npm i fastify @sinclair/typebox@${{ matrix.peer-version }} + + - name: Lint code + run: npm run lint + variants: name: Read test variants + needs: lint runs-on: ubuntu-latest permissions: contents: read @@ -84,9 +110,6 @@ jobs: - name: Install peerdeps run: npm i fastify @sinclair/typebox@${{ matrix.peer-version }} - - name: Lint code - run: npm run lint - - name: Run tests run: npm test diff --git a/package.json b/package.json index 1c28181..a1b874a 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "homepage": "https://github.com/fastify/fastify-type-provider-typebox#readme", "devDependencies": { "@types/node": "^20.1.0", - "@typescript-eslint/eslint-plugin": "^5.32.0", - "@typescript-eslint/parser": "^5.32.0", + "@typescript-eslint/eslint-plugin": "^6.5.0", + "@typescript-eslint/parser": "^6.5.0", "eslint": "^8.21.0", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.26.0",