This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Improve CI with Nix (#405) #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
with: | |
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Check flake.lock | |
uses: DeterminateSystems/flake-checker-action@main | |
with: | |
fail-mode: true | |
- run: nix develop --command -- pnpm check | |
- run: nix develop --command -- pnpm lint |