mirror of https://github.com/eleith/emailjs.git
github/workflows: add lint task
This commit is contained in:
parent
c393115df6
commit
d4930cd2da
|
@ -0,0 +1,28 @@
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: lint
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node-version: [^10, ^12, ^14]
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: install
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
run: yarn lint
|
Loading…
Reference in New Issue