Skip to content

[DT-9] Setup GitHub Actions Properly #3

[DT-9] Setup GitHub Actions Properly

[DT-9] Setup GitHub Actions Properly #3

Workflow file for this run

name: Lint
on: [pull_request]
jobs:
install-deps:
name: Install Deps

Check failure on line 7 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 7, Col: 5): Required property is missing: runs-on
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