blob: beee7fea819b2caccd5383da8d82a3bdeee1eda0 [file] [log] [blame]
name: Lint & Compile
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "development" branch
push:
branches: ["development"]
pull_request:
branches: ["development"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.6.0
with:
node-version: 19.x
- run: yarn install --immutable --ignore-engines
- name: Compile
run: yarn build
- name: Run eslint
uses: mrdivyansh/eslint-action@v1.0.7
- name: Run prettier
uses: actionsx/prettier@v2