Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/compose-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Compose Tests
on:
pull_request:
push:
branches:
- main*

concurrency:
group: compose-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
compose_tests:
runs-on: charon-ci
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
driver-opts: "image=moby/buildkit:v0.10.5"
- uses: ./.github/actions/setup-go
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: |
echo "CHARON_REPO=$(pwd)" >> $GITHUB_ENV
echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV
- run: go test -race github.com/obolnetwork/charon/testutil/compose/smoke -v -integration -sudo-perms -timeout=20m -log-dir=.
- uses: actions/upload-artifact@v4
if: always()
with:
name: smoke-test-logs
path: testutil/compose/smoke/*.log
retention-days: 3
26 changes: 26 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Integration Tests
on:
pull_request:
push:
branches:
- main*

concurrency:
group: integration-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
integration_tests:
runs-on: charon-ci
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test -v -timeout=10m -race github.com/obolnetwork/charon/testutil/integration -integration
78 changes: 0 additions & 78 deletions .github/workflows/test.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Unit Tests
on:
pull_request:
push:
branches:
- main*

concurrency:
group: unit-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
unit_tests:
runs-on: charon-ci
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test -coverprofile=coverage.out -covermode=atomic -timeout=5m -race ./...
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
Loading