diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 723a8a28..9a439786 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -20,7 +20,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 16 - name: Install Yarn packages run: yarn install diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..eb224f44 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,36 @@ +name: Linting + +on: + push: + branches: + - master + - next + pull_request: + types: [opened, reopened] + +permissions: read-all + +jobs: + linting: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: Install Node.js dependencies + run: npm ci + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + eslint: true + eslint_dir: src + eslint_extensions: tsx,ts + eslint_auto_fix: false \ No newline at end of file