chore(deps): Make snafu dependency only required for the CLI #352
Workflow file for this run
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: Flake Test | |
on: [ push, pull_request ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
nix-flake: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v10 | |
- name: Cache Nix dependencies | |
uses: DeterminateSystems/magic-nix-cache-action@v4 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v5 | |
- name: Check flake evaluation | |
run: nix flake check --impure | |
- name: Build flake | |
run: nix build | |
- name: Test run flake | |
run: nix run . -- --version | |
- name: Test run in shell | |
run: nix shell -c decasify --version |