Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5192ba6

Browse filesBrowse files
mikeland73Lagoja
andauthored
[easy][cicd] Fix testscripts (#2545)
## Summary ## How was it tested? --------- Co-authored-by: John Lago <750845+Lagoja@users.noreply.github.com>
1 parent 41daddd commit 5192ba6
Copy full SHA for 5192ba6

File tree

4 files changed

+11
-6
lines changed
Filter options

4 files changed

+11
-6
lines changed

‎.github/workflows/cli-tests.yaml

Copy file name to clipboardExpand all lines: .github/workflows/cli-tests.yaml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ jobs:
8383
steps:
8484
- uses: actions/checkout@v4
8585
- uses: DeterminateSystems/nix-installer-action@main
86-
- run: nix build .
86+
- name: Build flake
87+
run: |
88+
if ! nix build .; then
89+
echo "::warning::If this fails, you probably have to run 'devbox run update-hash'"
90+
exit 1
91+
fi
8792
- run: ./result/bin/devbox version
8893

8994
golangci-lint:

‎flake.lock

Copy file name to clipboardExpand all lines: flake.lock
+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎testscripts/testrunner/testrunner.go

Copy file name to clipboardExpand all lines: testscripts/testrunner/testrunner.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Main(m *testing.M) {
1919
commands := map[string]func(){
2020
"devbox": func() {
2121
// Call the devbox CLI directly:
22-
boxcli.Execute(context.Background(), os.Args[1:])
22+
os.Exit(boxcli.Execute(context.Background(), os.Args[1:]))
2323
},
2424
"print": func() { // Not 'echo' because we don't expand variables
2525
fmt.Println(strings.Join(os.Args[1:], " "))

‎vendor-hash

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sha256-nU+3vFjOAYHRbVJiZuI/78jxDbWB5Ghdt05eWQoeWJA=
1+
sha256-9ZaouEHCuavaRnEVa8cgGrAwyZWXUzyPhcUH02qkfWo=

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.