Create lint.yml
This commit is contained in:
parent
b6eec9c28f
commit
8f67db0154
1 changed files with 27 additions and 0 deletions
27
.github/workflows/lint.yml
vendored
Normal file
27
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Lint
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ESLint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set Node.js 16.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
|
||||
- name: Run install
|
||||
uses: borales/actions-yarn@v4
|
||||
with:
|
||||
cmd: install # will run `yarn install` command
|
||||
|
||||
- name: Lint
|
||||
uses: borales/actions-yarn@v4
|
||||
with:
|
||||
cmd: lint # will run `yarn lint` command
|
Loading…
Add table
Add a link
Reference in a new issue