Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/google.golang.org/grpc…
Browse files Browse the repository at this point in the history
…-1.55.0
  • Loading branch information
mergify[bot] authored May 10, 2023
2 parents 33599e7 + 7be72c7 commit 00ff516
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run 'true'
- run: PATH=$PWD/bin/:$PATH ./ci-checks.sh
- name: Run ci-checks.sh
run: nix-shell --run 'make ci-checks'
# We preemptively build the binaries for efficiency instead of waiting on unit tests to pass
# hence this doesn't depend on anything.
build:
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ check-proto: generate-proto
verify: lint check-generated ## Verify code style, is lint free, freshness ...
$(GOFUMPT) -s -d .

.PHONY: ci-checks
ci-checks: ## Run ci-checks.sh script
@if type nix-shell 2>&1 > /dev/null; then \
./ci-checks.sh; \
else \
docker run -it --rm -v $${PWD}:/code -w /code nixos/nix nix-shell --run 'make ci-checks'; \
fi

.PHONY: lint
lint: shellcheck hadolint golangci-lint yamllint ## Lint code

Expand Down
20 changes: 1 addition & 19 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,11 @@ in { pkgs ? import (_pkgs.fetchFromGitHub {

with pkgs;

let
pkgs = import (_pkgs.fetchFromGitHub {
# go 1.18.5
owner = "NixOS";
repo = "nixpkgs";
# branch@date: nixpkgs-unstable@2023-03-30
rev = "8b3bc690e201c8d3cbd14633dbf3462a820e73f2";
sha256 = "sha256-+ckiCxbGFSs1/wHKCXAZnvb37Htf6k5nmQE3T0Y7hK8=";
}) { };

go_1_20_3 = pkgs.go;

in mkShell {
mkShell {
buildInputs = [
docker-compose
git
gnumake
gnused
go_1_20_3
jq
nixfmt
nodePackages.prettier
protobuf
python3Packages.codespell
python3Packages.pip
python3Packages.setuptools
Expand Down

0 comments on commit 00ff516

Please sign in to comment.