Browse Source

ci(github): Add eslint action (#17437)

This reverts commit 9c88ad8bf66763700a11923dfbaa90d68275711f.

Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
Billy Vong 5 years ago
parent
commit
d44342ede1
1 changed files with 21 additions and 0 deletions
  1. 21 0
      .github/workflows/eslint.yml

+ 21 - 0
.github/workflows/eslint.yml

@@ -0,0 +1,21 @@
+name: javascript
+on: push
+jobs:
+    build:
+      name: eslint
+      runs-on: ubuntu-latest
+      steps:
+        - uses: actions/checkout@v1
+        - uses: actions/setup-node@v1
+          with:
+            node-version: '10.16.3'
+
+        - name: yarn install
+          run: yarn install --frozen-lockfile
+
+        - name: eslint
+          uses: getsentry/action-eslint@v1
+          env:
+            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          with:
+            job-name: eslint