You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
471 B
23 lines
471 B
name: lint |
|
|
|
on: |
|
pull_request: |
|
push: |
|
branches: [ master ] |
|
|
|
env: |
|
NODE_VERSION: 16.x |
|
|
|
jobs: |
|
lint-js: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- name: Use Node.js ${{ env.NODE_VERSION }} |
|
uses: actions/setup-node@v1 |
|
with: |
|
node-version: ${{ env.NODE_VERSION }} |
|
- name: Install ESLint + ESLint configs/plugins |
|
run: npm install --only=dev |
|
- name: Lint files |
|
run: npm run lint
|
|
|