File tree 3 files changed +15
-15
lines changed
3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Build Binaries
1
+ name : Build Bacalhau Binaries
2
2
3
3
on :
4
4
workflow_call :
33
33
34
34
- uses : actions/checkout@v4
35
35
with :
36
- fetch-depth : " 0"
36
+ fetch-depth : " 0" # Need to fetch all due to how bacalhau constructs semver
37
37
38
38
- uses : actions/setup-go@v5
39
39
with :
@@ -59,13 +59,16 @@ jobs:
59
59
# Listing Builds
60
60
echo "===> Built Artifacts:"
61
61
ls -lh dist/
62
+
63
+ # Remove keys, good security practice
64
+ rm /tmp/private.pem /tmp/public.pem
62
65
63
66
- name : Upload binary artifacts
64
67
uses : actions/upload-artifact@v4
65
68
with :
66
69
name : ${{ matrix.os }}-${{ matrix.goarch }}
67
70
path : " dist/bacalhau_*"
68
- retention-days : 1 # Short retention since these are intermediate artifacts
71
+ retention-days : 1 # Short retention since these are intermediate artifacts, also save money
69
72
70
73
- name : Report build status
71
74
if : always()
Original file line number Diff line number Diff line change 1
- name : CI Pipeline
1
+ name : Main Pipeline
2
2
3
3
on :
4
4
push :
@@ -13,10 +13,10 @@ jobs:
13
13
uses : ./.github/workflows/build.yml
14
14
secrets : inherit
15
15
16
- integration-tests :
16
+ testcontainers-suite :
17
17
needs : build
18
18
if : success()
19
- uses : ./.github/workflows/testcontainers-integration-tests .yml
19
+ uses : ./.github/workflows/testcontainers-suite .yml
20
20
with :
21
21
os : linux
22
22
arch : amd64
Original file line number Diff line number Diff line change 1
- name : TestContainers Testing
1
+ name : TestContainers Suite
2
2
3
3
on :
4
4
workflow_call :
21
21
uses : actions/download-artifact@v4
22
22
with :
23
23
name : ${{ inputs.os }}-${{ inputs.arch }}
24
- path : tmp /
24
+ path : compiled-artifacts /
25
25
26
26
- name : Install Golang
27
27
uses : actions/setup-go@v5
@@ -31,14 +31,11 @@ jobs:
31
31
- name : Run Go tests in integration test directory
32
32
shell : bash
33
33
run : |
34
- # TODO: make WebUI happy when compiling
35
- mkdir -p webui/build
36
- echo "hello test" > webui/build/index.html
37
- echo "===> Copy binary to tests assets"
38
- cd tmp
34
+ echo "===> Copy compiled artifact to use in docker images..."
35
+ cd compiled-artifacts
39
36
tar -xzf bacalhau_*.tar.gz
40
37
cp ./bacalhau ../test_integration/common_assets/bacalhau_bin
41
-
42
- # Run tests
38
+
39
+ echo "===> Running tests..."
43
40
cd ../test_integration
44
41
go test -v -count=1 ./...
You can’t perform that action at this time.
0 commit comments