Nix update, added CI & Makefile, fix small errors #1
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Setup Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Check Flake | |
run: nix flake check | |
- name: Build development environment | |
run: nix develop -c echo "Nix environment ready" | |
- name: Format check | |
run: nix develop -c bash -c "make fmt && git diff --exit-code" | |
- name: Check | |
run: nix develop -c make check | |
- name: Sql check | |
run: nix develop -c make sql-check | |
- name: Build | |
run: nix develop -c make build | |
- name: Test | |
run: nix develop -c make test | |