Skip to content

Commit

Permalink
workflows: use self-hosted runners (#3058)
Browse files Browse the repository at this point in the history
Use self-hosted runners for compute-heavy actions like tests and Docker image builds.

Streamline the `test.yml` action so that its steps aren't executed in parallel but rather sequentially from top to bottom.

category: misc
ticket: none
  • Loading branch information
gsora authored Apr 30, 2024
1 parent 25171c4 commit b3c54f1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
name: Build and Publish Docker Image
jobs:
build-docker:
runs-on: ubuntu-latest
runs-on: charon-ci
name: Build Docker Image
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
golangci:
runs-on: ubuntu-latest
runs-on: charon-ci
steps:
# Config options can be found in README here: https://github.com/golangci/golangci-lint-action
- uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
nightly_test:
runs-on: ubuntu-latest
runs-on: charon-ci
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main*
jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: charon-ci
env:
SKIP: golangci-lint,run-go-tests,no-commit-to-branch
steps:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main*
jobs:
unit_tests:
runs-on: ubuntu-latest
runs-on: charon-ci
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
Expand All @@ -28,7 +28,10 @@ jobs:
files: coverage.out

integration_tests:
runs-on: ubuntu-latest
runs-on: charon-ci
if: ${{ always() }} # makes this step always execute, even if unit_tests fails
needs:
- unit_tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
Expand All @@ -45,7 +48,11 @@ jobs:
- run: go test -v -timeout=10m -race github.com/obolnetwork/charon/testutil/integration -integration

compose_tests:
runs-on: ubuntu-latest
runs-on: charon-ci
if: ${{ always() }} # makes this step always execute, even if unit_tests or integration_tests fails
needs:
- unit_tests
- integration_tests
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
Expand Down

0 comments on commit b3c54f1

Please sign in to comment.