feat(ci): CI nix devShell
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: Install nix
|
||||
uses: nixbuild/nix-quick-install-action@v28
|
||||
- name: Start shell
|
||||
run: nix develop
|
||||
run: nix develop .#CI
|
||||
- name: Build
|
||||
run: make build-vercel
|
||||
- name: Deploy
|
||||
|
||||
26
flake.nix
26
flake.nix
@@ -19,16 +19,20 @@
|
||||
templ = inputs.templ.packages.${system}.templ;
|
||||
in
|
||||
{
|
||||
devShells.default =
|
||||
pkgs.mkShell
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
air
|
||||
go
|
||||
golangci-lint
|
||||
templ
|
||||
nodePackages_latest.vercel
|
||||
];
|
||||
};
|
||||
devShells.CI = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
go
|
||||
templ
|
||||
];
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
air
|
||||
go
|
||||
golangci-lint
|
||||
templ
|
||||
nodePackages_latest.vercel
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user