File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Compose Tests
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main*
7+
8+ concurrency :
9+ group : compose-tests-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ compose_tests :
14+ runs-on : charon-ci
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Set up QEMU
18+ id : qemu
19+ uses : docker/setup-qemu-action@v3
20+ - uses : docker/setup-buildx-action@v3
21+ with :
22+ driver-opts : " image=moby/buildkit:v0.10.5"
23+ - uses : ./.github/actions/setup-go
24+ - uses : actions/cache@v4
25+ with :
26+ path : |
27+ ~/go/pkg/mod
28+ ~/.cache/go-build
29+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
30+ restore-keys : |
31+ ${{ runner.os }}-go-
32+ - run : |
33+ echo "CHARON_REPO=$(pwd)" >> $GITHUB_ENV
34+ echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV
35+ - run : go test -race github.com/obolnetwork/charon/testutil/compose/smoke -v -integration -sudo-perms -timeout=20m -log-dir=.
36+ - uses : actions/upload-artifact@v4
37+ if : always()
38+ with :
39+ name : smoke-test-logs
40+ path : testutil/compose/smoke/*.log
41+ retention-days : 3
Original file line number Diff line number Diff line change 1+ name : Integration Tests
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main*
7+
8+ concurrency :
9+ group : integration-tests-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ integration_tests :
14+ runs-on : charon-ci
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : ./.github/actions/setup-go
18+ - uses : actions/cache@v4
19+ with :
20+ path : |
21+ ~/go/pkg/mod
22+ ~/.cache/go-build
23+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24+ restore-keys : |
25+ ${{ runner.os }}-go-
26+ - run : go test -v -timeout=10m -race github.com/obolnetwork/charon/testutil/integration -integration
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Unit Tests
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main*
7+
8+ concurrency :
9+ group : unit-tests-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ unit_tests :
14+ runs-on : charon-ci
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : ./.github/actions/setup-go
18+ - uses : actions/cache@v4
19+ with :
20+ path : |
21+ ~/go/pkg/mod
22+ ~/.cache/go-build
23+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24+ restore-keys : |
25+ ${{ runner.os }}-go-
26+ - run : go test -coverprofile=coverage.out -covermode=atomic -timeout=5m -race ./...
27+ - name : Upload coverage to Codecov
28+ uses : codecov/codecov-action@v5.4.0
29+ with :
30+ token : ${{ secrets.CODECOV_TOKEN }}
31+ files : coverage.out
You can’t perform that action at this time.
0 commit comments