Skyler | 1024565 | 2022-08-08 21:43:50 +0100 | [diff] [blame] | 1 | name: Lint & Compile |
| 2 | |
| 3 | # Controls when the workflow will run |
| 4 | on: |
pineafan | 3a02ea3 | 2022-08-11 21:35:04 +0100 | [diff] [blame] | 5 | # 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"] |
Skyler | 1024565 | 2022-08-08 21:43:50 +0100 | [diff] [blame] | 10 | |
pineafan | 3a02ea3 | 2022-08-11 21:35:04 +0100 | [diff] [blame] | 11 | # Allows you to run this workflow manually from the Actions tab |
| 12 | workflow_dispatch: |
Skyler | 1024565 | 2022-08-08 21:43:50 +0100 | [diff] [blame] | 13 | |
| 14 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 15 | jobs: |
pineafan | 3a02ea3 | 2022-08-11 21:35:04 +0100 | [diff] [blame] | 16 | lint: |
| 17 | runs-on: ubuntu-latest |
| 18 | steps: |
| 19 | - uses: actions/checkout@v3 |
| 20 | - run: yarn install --immutable |
| 21 | - name: Compile |
| 22 | run: yarn build |
| 23 | - name: Run eslint |
| 24 | uses: mrdivyansh/eslint-action@v1.0.7 |
| 25 | - name: Run prettier |
| 26 | uses: actionsx/prettier@v2 |