blob: 31b267403eb64fe2671a78022840462fa683028d [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 Grey83d8aeb2023-04-23 01:05:40 +000021 - uses: cachix/install-nix-action@v19
Skyler Grey28fadca2023-03-05 07:47:00 +000022 with:
Skyler Grey83d8aeb2023-04-23 01:05:40 +000023 github_access_token: ${{ secrets.GITHUB_TOKEN }}
TheCodedProf7b985d82023-06-08 16:40:41 -040024 - run: nix develop --command pnpm install --frozen-lockfile
Skyler Grey19f1b9c2023-03-08 15:13:02 +000025 - name: Show versions
TheCodedProf7b985d82023-06-08 16:40:41 -040026 run: nix develop --command pnpm run versions
pineafan3a02ea32022-08-11 21:35:04 +010027 - name: Compile
TheCodedProf7b985d82023-06-08 16:40:41 -040028 run: nix develop --command pnpm run build build
Skyler Greye7970142023-03-05 10:07:59 +000029 - name: Run prettier and eslint
TheCodedProf7b985d82023-06-08 16:40:41 -040030 run: nix develop --command pnpm run lint-ci