-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move a part of the tooling from earthfile to justfile (let depl…
…oyment stuff for the moment) (#39) * feat: move a part of the tooling from earthfile to justfile (let deployment stuff for the moment) * feat: add missing files * fix: wrong runners
- Loading branch information
Showing
9 changed files
with
244 additions
and
98 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use flake --impure | ||
dotenv |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set dotenv-load | ||
|
||
default: | ||
@just --list | ||
|
||
pre-commit: generate tidy lint | ||
pc: pre-commit | ||
|
||
lint: | ||
@golangci-lint run --fix --build-tags it --timeout 5m | ||
|
||
tidy: | ||
@go mod tidy | ||
|
||
generate: | ||
@go generate ./... | ||
|
||
tests: | ||
@go test -race -covermode=atomic \ | ||
-coverprofile coverage.txt \ | ||
./... | ||
|
||
release-local: | ||
@goreleaser release --nightly --skip=publish --clean | ||
|
||
release-ci: | ||
@goreleaser release --nightly --clean | ||
|
||
release: | ||
@goreleaser release --clean |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
description = "Wallets dev env"; | ||
|
||
inputs = { | ||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; | ||
|
||
nur = { | ||
url = "github:nix-community/NUR"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
outputs = { self, nixpkgs, nur }: | ||
let | ||
goVersion = 23; | ||
|
||
supportedSystems = [ | ||
"x86_64-linux" | ||
"aarch64-linux" | ||
"x86_64-darwin" | ||
"aarch64-darwin" | ||
]; | ||
|
||
forEachSupportedSystem = f: | ||
nixpkgs.lib.genAttrs supportedSystems (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [ self.overlays.default nur.overlays.default ]; | ||
config.allowUnfree = true; | ||
}; | ||
in | ||
f { pkgs = pkgs; system = system; } | ||
); | ||
|
||
speakeasyVersion = "1.351.0"; | ||
speakeasyPlatforms = { | ||
"x86_64-linux" = "linux_amd64"; | ||
"aarch64-linux" = "linux_arm64"; | ||
"x86_64-darwin" = "darwin_amd64"; | ||
"aarch64-darwin" = "darwin_arm64"; | ||
}; | ||
speakeasyHashes = { | ||
"x86_64-linux" = "sha256-eeGzoIlsgsW/wnEET+UFgNN1qWgndxRHzulhHDTyHRY="; | ||
"aarch64-linux" = "sha256-zOj2QUwLwRz0MyTLdVxLaGU7XEqhgKLCyhsO9S8VCNk="; | ||
"x86_64-darwin" = "sha256-vBgEv6WWwJhBW6nMLy4Nj7qjWdGqk/4al5dIUCqrm1I="; | ||
"aarch64-darwin" = "sha256-N129T0BDRVUXxH6Dl58/hUEApiq1q2B6qTwTuEjLDi4="; | ||
}; | ||
|
||
in | ||
{ | ||
overlays.default = final: prev: { | ||
go = final."go_1_${toString goVersion}"; | ||
}; | ||
|
||
defaultPackage.x86_64-linux = self.packages.x86_64-linux.speakeasy; | ||
defaultPackage.aarch64-linux = self.packages.aarch64-linux.speakeasy; | ||
defaultPackage.x86_64-darwin = self.packages.x86_64-darwin.speakeasy; | ||
defaultPackage.aarch64-darwin = self.packages.aarch64-darwin.speakeasy; | ||
|
||
devShells = forEachSupportedSystem ({ pkgs, system }: | ||
{ | ||
default = pkgs.mkShell { | ||
packages = with pkgs; [ | ||
go | ||
gotools | ||
golangci-lint | ||
ginkgo | ||
pkgs.nur.repos.goreleaser.goreleaser-pro | ||
just | ||
]; | ||
}; | ||
} | ||
); | ||
}; | ||
} |
Oops, something went wrong.