diff --git a/.github/workflows/check-code-quality.yml b/.github/workflows/check-code-quality.yml new file mode 100644 index 0000000..ad344fb --- /dev/null +++ b/.github/workflows/check-code-quality.yml @@ -0,0 +1,42 @@ +name: Check Code Quality + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + eslint: + name: Run ESlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Run ESLint + run: npm run lint + + typescript: + name: Check TypeScript types + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Run TypeScript types check + run: npm run lint:ts