add formatter to flake
This commit is contained in:
parent
e60c43b376
commit
5efe18e222
|
@ -6,6 +6,21 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
tests:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
|
|
|
@ -21,8 +21,10 @@
|
||||||
src = ./.;
|
src = ./.;
|
||||||
modules = ./gomod2nix.toml;
|
modules = ./gomod2nix.toml;
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
defaultPackage = sanic;
|
{
|
||||||
|
packages.default = sanic;
|
||||||
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
go
|
go
|
||||||
|
|
Loading…
Reference in a new issue