diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ec93169..2bee211 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,8 +9,8 @@ jobs: node: [18, 20] name: Linting on Ubuntu with Node ${{ matrix.node }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: 'npm' diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 3011781..6ccc65b 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,18 +1,18 @@ name: prettier run-name: Installs project and runs prettier checks -on: [ push, pull_request ] +on: [push, pull_request] jobs: - lint: - runs-on: ubuntu-latest - strategy: - matrix: - node: [ 18, 20 ] - name: Prettier on Ubuntu with Node ${{ matrix.node }} - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: 'npm' - - run: npm install - - run: npm run format \ No newline at end of file + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node: [18, 20] + name: Prettier on Ubuntu with Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + - run: npm install + - run: npm run format diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index cb37582..c89f822 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,32 +1,32 @@ name: run-tests run-name: Installs project and runs tests -on: [ push, pull_request ] +on: [push, pull_request] jobs: - run-tests-nix: - runs-on: ubuntu-latest - strategy: - matrix: - node: [ 18, 20 ] - name: Run tests on Ubuntu with Node ${{ matrix.node }} - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: 'npm' - - run: npm install - - run: npm run test - run-tests-win: - runs-on: windows-latest - strategy: - matrix: - node: [ 18, 20 ] - name: Run tests on Windows with Node ${{ matrix.node }} - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: 'npm' - - run: npm install - - run: npm run test \ No newline at end of file + run-tests-nix: + runs-on: ubuntu-latest + strategy: + matrix: + node: [18, 20] + name: Run tests on Ubuntu with Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + - run: npm install + - run: npm run test + run-tests-win: + runs-on: windows-latest + strategy: + matrix: + node: [18, 20] + name: Run tests on Windows with Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + - run: npm install + - run: npm run test diff --git a/tsconfig.json b/tsconfig.json index be882b7..71efc39 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,8 @@ /* TS complains not about to infer GraphQLESTreeNode */ "@graphql-eslint/eslint-plugin/estree-converter/*": [ "./node_modules/@graphql-eslint/eslint-plugin/cjs/estree-converter/*" - ] + ], + "@typescript-eslint/rule-tester": ["./node_modules/@typescript-eslint/rule-tester/dist"] } }, "include": ["src/**/*", "./package.json"]