Add a basic lint action

pull/8/head
Skyler 3 years ago committed by GitHub
parent 4c7825abc0
commit 1024565096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,27 @@
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
- run: yarn install --immutable
- name: Compile
run: tsc
- name: Run eslint
uses: mrdivyansh/eslint-action@v1.0.7
- name: Run prettier
uses: actionsx/prettier@v2
Loading…
Cancel
Save