Skip to content

Commit 42b69b0

Browse files
authored
ci: install released binaries in tests (#1008)
1 parent 3480c8c commit 42b69b0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ jobs:
3838
exit 1
3939
fi
4040
- name: Install tparse
41-
run: go install github.com/mfridman/tparse@main
41+
run: |
42+
mkdir -p $HOME/.local/bin
43+
curl -L -o $HOME/.local/bin/tparse https://github.com/mfridman/tparse/releases/latest/download/tparse_linux_x86_64
44+
chmod +x $HOME/.local/bin/tparse
45+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
4246
- name: Run tests
4347
run: |
4448
make add-gowork

.github/workflows/integration.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ jobs:
2525
with:
2626
go-version: "stable"
2727
- name: Install tparse
28-
run: go install github.com/mfridman/tparse@main
28+
run: |
29+
mkdir -p $HOME/.local/bin
30+
curl -L -o $HOME/.local/bin/tparse https://github.com/mfridman/tparse/releases/latest/download/tparse_linux_x86_64
31+
chmod +x $HOME/.local/bin/tparse
32+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
2933
- name: Run full integration tests
3034
run: |
3135
make test-integration

0 commit comments

Comments
 (0)