moved lint into a separate workflow

This commit is contained in:
Eugene Pankov
2019-10-11 15:10:22 -07:00
parent 504f0a5183
commit 0a07d0cd7f
5 changed files with 47 additions and 24 deletions

View File

@@ -17,6 +17,10 @@ jobs:
run: |
eval $(ssh-agent -s)
ssh-add <(echo "$DOCS_PRIVATE_KEY")
cd app
yarn
cd ..
rm app/node_modules/.yarn-integrity
yarn
yarn run docs
rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/

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

@@ -0,0 +1,25 @@
name: Lint
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Installing Node
uses: actions/setup-node@v1
with:
version: 10
- name: Install deps
run: |
cd app
yarn
cd ..
rm app/node_modules/.yarn-integrity
yarn
- name: Lint
run: yarn run lint

View File

@@ -21,9 +21,6 @@ jobs:
rm app/node_modules/.yarn-integrity
yarn
- name: Lint
run: yarn run lint
- name: Build native deps
run: scripts/build-native.js

View File

@@ -21,9 +21,6 @@ jobs:
rm app/node_modules/.yarn-integrity
yarn
- name: Lint
run: yarn run lint
- name: Build native deps
run: scripts/build-native.js