Add github action for ESLint (#1125)

* add github lint action

* use yaml instructions from action repo

* fix source root var

* fix source root var

* remove source root var

* install libusb

* use forked action

* remove libusb setup from action vm

* use new version of lint action

* Fix version tag of action

* update workflow file

* update workflow file
This commit is contained in:
Mikhail Mikheev 2020-07-21 15:20:08 +04:00 committed by GitHub
parent f33332a3df
commit 70720d4be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

14
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Lint
on: pull_request
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gnosis/safe-react-eslint-action@main
# GITHUB_TOKEN in forked repositories is read-only
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
repo-token: ${{secrets.GITHUB_TOKEN}}