diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-06 11:15:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 11:15:39 +0300 |
commit | 7eed47bba470ba0f871248560385d7e6f0bbbbf4 (patch) | |
tree | 2155f41586fd91382a418642e2e36335e2699691 /.github/workflows/lint-eslint.yml | |
parent | 6af017d548ea7182dfe4f952ed61af92896e571a (diff) | |
parent | 452d2d161e56da710a18648568605721aec7aa97 (diff) |
Merge pull request #248 from nextcloud/fix/dependencies-lintv23.0.1rc2v23.0.1rc1v23.0.0rc3v23.0.0rc2v23.0.0rc1v23.0.0beta3v23.0.0beta2v23.0.0beta1v23.0.0
Diffstat (limited to '.github/workflows/lint-eslint.yml')
-rw-r--r-- | .github/workflows/lint-eslint.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml new file mode 100644 index 0000000..11590ff --- /dev/null +++ b/.github/workflows/lint-eslint.yml @@ -0,0 +1,44 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + +name: Lint + +on: + pull_request: + push: + branches: + - master + - stable* + +jobs: + lint: + runs-on: ubuntu-latest + + name: eslint + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Read package.json node and npm engines version + uses: skjnldsv/read-package-engines-version-actions@v1.1 + id: versions + with: + fallbackNode: '^12' + fallbackNpm: '^6' + + - name: Set up node ${{ steps.versions.outputs.nodeVersion }} + uses: actions/setup-node@v2 + with: + node-version: ${{ steps.versions.outputs.nodeVersion }} + + - name: Set up npm ${{ steps.versions.outputs.npmVersion }} + run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint |