diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml deleted file mode 100644 index 37ebc364..00000000 --- a/.github/workflows/eslint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: eslint -on: - pull_request: - branches: [ main ] -jobs: - eslint: - name: runner / eslint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: eslint - uses: reviewdog/action-eslint@v1 - with: - reporter: github-pr-check diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..4d5f9811 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: lint +on: [pull_request] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - run: npm ci + - run: npm run lint