Skip to content

Commit

Permalink
fix: rule tester import error
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-li-at-salesforce committed Sep 25, 2024
1 parent 68c5d34 commit 65c46e7
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -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
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
58 changes: 29 additions & 29 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -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
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
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 65c46e7

Please sign in to comment.