From 4863a48dd1663c49f52c9110aea9627256acfdab Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Wed, 20 Nov 2024 17:07:56 +0000 Subject: [PATCH] feat: final tweaks london gophers --- .../_index.md | 16 ++++++------ .../_index.md | 25 +++++-------------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/content/slides/go-lab-reproducible-envs-with-nix/_index.md b/content/slides/go-lab-reproducible-envs-with-nix/_index.md index 2c444c3..549fe27 100644 --- a/content/slides/go-lab-reproducible-envs-with-nix/_index.md +++ b/content/slides/go-lab-reproducible-envs-with-nix/_index.md @@ -162,14 +162,14 @@ go run github.com/...../cmd/golangci-lint ```vim{3-6|9} -example on  main via 🐹 v1.22.8 +example on main via 🐹 v1.22.8 ❯ ls -al .rw-r--r-- 101 haseebmajid 28 Mar 15:36 go.mod .rw-r--r-- 191 haseebmajid 28 Mar 15:37 go.sum .rw-r--r-- 313 haseebmajid 28 Mar 15:33 main.go .rw-r--r-- 0 haseebmajid 28 Mar 14:55 main_test.go -example on  main via 🐹 v1.22.8 +example on main via 🐹 v1.22.8 ❯ nvim flake.nix ``` @@ -216,13 +216,13 @@ example on  main via 🐹 v1.22.8 --- ```vim{2|5|8-9} -example on  main via 🐹 v1.22.8 +example on main via 🐹 v1.22.8 ❯ which golangci-lint -example on  main via 🐹 v1.22.8 +example on main via 🐹 v1.22.8 ❯ nix develop -example on  main via 🐹 v1.22.8 ❄️ impure (nix-shell-env) +example on main via 🐹 v1.22.8 ❄️ impure (nix-shell-env) ❯ which golangci-lint /nix/store/kcd...golangci-lint-1.56.2/bin/golangci-lint ``` @@ -296,18 +296,18 @@ direnv: error /home/haseeb/banterbus/.envrc is blocked. Run `direnv allow` to approve its content -banterbus on  main via 🐹 v1.22.7 +banterbus on main via 🐹 v1.22.7 ❯ direnv allow direnv: loading ~/banterbus/.envrc direnv: using flake direnv: nix-direnv: Renewed cache ... -banterbus on  main via 🐹 v1.22.8 via ❄️ impure (nix-shell-env) +banterbus on main via 🐹 v1.22.8 via ❄️ impure (nix-shell-env) ❯ which golangci-lint /nix/store/kcd...golangci-lint-1.56.2/bin/golangci-lint -banterbus on  main via 🐹 v1.22.8 via ❄️ impure (nix-shell-env) +banterbus on main via 🐹 v1.22.8 via ❄️ impure (nix-shell-env) ❯ cd .. direnv: unloading diff --git a/content/slides/london-gophers-reproducible-envs-with-nix/_index.md b/content/slides/london-gophers-reproducible-envs-with-nix/_index.md index 6121f86..e5f6632 100644 --- a/content/slides/london-gophers-reproducible-envs-with-nix/_index.md +++ b/content/slides/london-gophers-reproducible-envs-with-nix/_index.md @@ -968,7 +968,7 @@ pkgs.dockerTools.buildImage { ## flake.nix -```nix{23-32|34-37} +```nix{23-32|34-37|38-40} # flake.nix { description = "Development environment for BanterBus"; @@ -1006,6 +1006,9 @@ pkgs.dockerTools.buildImage { inherit pkgs; inherit devPackages; }; + devShells.default = pkgs.mkShell { + packages = devPackages; + }; }) ); } @@ -1042,9 +1045,7 @@ publish:docker:ci: --- -# CI Improved - -```yml{7-16|18-22} +```yml{6-16|8|9-14|18-22} stages: - deps @@ -1066,25 +1067,11 @@ tests:unit: extends: - .task script: - - task tests:unit - -format: - extends: - - .task - script: - - task format + - go test -skip '^TestIntegration' ./internal/... ``` --- -## Time Improvement - -- unit tests job - - 2 minutes 28 seconds - - 54 seconds - ---- - [Credit](https://mstdn.social/@godmaire/111544747165375207)