diff --git a/.github/workflows/lint-js.yml b/.github/workflows/lint-js.yml new file mode 100644 index 000000000..ee886c772 --- /dev/null +++ b/.github/workflows/lint-js.yml @@ -0,0 +1,34 @@ +name: Lint JS + +on: + push: + paths: + - "**/*.js" + - ".eslintrc.json" + - "package.json" + - "bin/node-sass" + - ".github/workflows/lint-js.yml" + pull_request: + paths: + - "**/*.js" + - ".eslintrc.json" + - "package.json" + - "bin/node-sass" + - ".github/workflows/lint-js.yml" + +jobs: + build: + runs-on: ubuntu-latest + env: + SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + + - name: Install packages + run: npm install --unsafe-perm + + - name: Run Linting + run: npm run lint diff --git a/.travis.yml b/.travis.yml index 1e659541d..69030dda1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ jobs: - stage: test node_js: "14.5" os: linux - before_script: npm run lint || exit 1; after_success: npm run-script coverage; addons: apt: