[DT-9] Setup GitHub Actions Properly #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [pull_request] | |
jobs: | |
install-deps: | |
name: Install Deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install Common Deps | |
run: npm i --ignore-scripts | |
- name: Install Server Deps | |
run: npm i --ignore-scripts | |
working-directory: ./server | |
- name: Install App Deps | |
run: npm i --ignore-scripts | |
working-directory: ./app | |
lint-server: | |
name: Lint Server | |
needs: install-deps | |
runs-on: ubuntu-latest | |
steps: | |
- name: Lint Server | |
run: npm run lint | |
working-directory: server | |
lint-app: | |
name: Lint App | |
needs: install-deps | |
runs-on: ubuntu-latest | |
steps: | |
- name: Lint App | |
run: npm run lint | |
working-directory: app |