blob: ade943eb9f061a16b2b6814b2e32adaf0d96e849 [file] [log] [blame]
Skyler10245652022-08-08 21:43:50 +01001name: Lint & Compile
2
3# Controls when the workflow will run
4on:
pineafan3a02ea32022-08-11 21:35:04 +01005 # Triggers the workflow on push or pull request events but only for the "development" branch
6 push:
7 branches: ["development"]
8 pull_request:
9 branches: ["development"]
Skyler10245652022-08-08 21:43:50 +010010
pineafan3a02ea32022-08-11 21:35:04 +010011 # Allows you to run this workflow manually from the Actions tab
12 workflow_dispatch:
Skyler10245652022-08-08 21:43:50 +010013
14# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15jobs:
pineafan3a02ea32022-08-11 21:35:04 +010016 lint:
17 runs-on: ubuntu-latest
Skyler Grey28fadca2023-03-05 07:47:00 +000018
pineafan3a02ea32022-08-11 21:35:04 +010019 steps:
20 - uses: actions/checkout@v3
Skyler Grey28fadca2023-03-05 07:47:00 +000021 - uses: actions/setup-node@v3.6.0
22 with:
23 node-version: 19.x
Skyler Greyc07e9ef2023-03-05 09:52:32 +000024 cache: 'yarn'
25 - run: yarn install --immutable --ignore-engines
pineafan3a02ea32022-08-11 21:35:04 +010026 - name: Compile
27 run: yarn build
28 - name: Run eslint
29 uses: mrdivyansh/eslint-action@v1.0.7
30 - name: Run prettier
31 uses: actionsx/prettier@v2