diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index b207471..5c3b26f 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -6,6 +6,21 @@ on: workflow_dispatch: jobs: + nix: + runs-on: docker + container: + image: nix + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Nix doctor + run: nix doctor + - name: Check flake + run: nix flake check --all-systems + - name: Build flake + run: nix build --print-out-paths + - name: Flake info + run: nix flake info tests: runs-on: docker container: diff --git a/README.md b/README.md index db01563..4df65b6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -[![maintained](https://img.shields.io/maintenance/yes/2024)]() +[![maintained](https://img.shields.io/maintenance/yes/2024?style=flat-square)]() +![Gitea Release](https://img.shields.io/gitea/v/release/cccb/sanic?gitea_url=https%3A%2F%2Fgit.berlin.ccc.de&sort=semver&display_name=release&style=flat-square) + # 🦔 sanic diff --git a/flake.nix b/flake.nix index 3bbdc4e..d57e6ad 100644 --- a/flake.nix +++ b/flake.nix @@ -21,12 +21,14 @@ src = ./.; modules = ./gomod2nix.toml; }; - in { + in + { packages.default = sanic; + formatter = pkgs.nixpkgs-fmt; devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ go - go-tools # staticcheck + go-tools # staticcheck gomod2nix.packages.${system}.default sanic ];