Skip to content

Commit

Permalink
Edited lint-ts to check for ts folders and to run globally
Browse files Browse the repository at this point in the history
  • Loading branch information
avifenesh committed Mar 7, 2024
1 parent f2c5f1b commit 8efffd5
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/lint-ts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: lint-ts

on:
push:
branches: ["main"]
Expand All @@ -16,30 +17,23 @@ on:

env:
CARGO_TERM_COLOR: always

jobs:
job:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/lint-ts
with:
package-folder: ./node
name: lint node

- uses: ./.github/workflows/lint-ts
with:
package-folder: ./benchmarks/node
name: lint benchmark
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/workflows/lint-ts
with:
package-folder: ./benchmarks/utilities
name: lint benchmark utilities
- name: Install dependencies
run: |
npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier prettier
- name: lint ts
- name: Run linting and prettier
run: |
npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier
npm i
npx eslint .
for folder in node benchmarks/node benchmarks/utilities; do
npx eslint ${{ github.workspace }}/$folder
npx prettier --check ${{ github.workspace }}/$folder
done

0 comments on commit 8efffd5

Please sign in to comment.