on PRs github cant push, so dont try and split lint workflow to only push on master

This commit is contained in:
Antoni Spaanderman 2022-03-18 18:38:40 +01:00
parent 9491096d8f
commit 106e131fb3
No known key found for this signature in database
GPG key ID: AE0B68E552E5DF8C
3 changed files with 18 additions and 6 deletions

View file

@ -3,9 +3,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:

View file

@ -3,9 +3,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:

18
.github/workflows/lint_pr.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Lint (Pull Request)
on:
pull_request:
branches:
- master
jobs:
lint:
name: Lint (Pull Request)
runs-on:
- ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install npm dependencies
run: npm i
- name: lint
run: npm run lint