diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 08:19:11 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 13:03:38 +0100 |
commit | fb183b457c2befbc3ab04b0cb070aa1e300443c6 (patch) | |
tree | bc440046f2484084b0e580181200864f0af5a294 /.github | |
parent | ccaa131e96fabb0e24ab6596d96de69411e7d955 (diff) | |
download | nextcloud-server-fb183b457c2befbc3ab04b0cb070aa1e300443c6.tar.gz nextcloud-server-fb183b457c2befbc3ab04b0cb070aa1e300443c6.zip |
Add eslint testing
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 016f3ac6d5b..b4037759b3c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -38,3 +38,25 @@ jobs: composer run cs:check -- --format=checkstyle | cs2pr composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) shell: bash + + node: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + name: eslint node${{ matrix.node-version }} + steps: + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint |