-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(ci): Use a single CI workflow for tests
This is an initial implementation to solve the re-building of our Docker image, which is being built multiple times by our Github Actions. This is meant to fix -> devops: Build CI Docker runs twice for every PR #7816
- Loading branch information
1 parent
3147d20
commit 1eec396
Showing
9 changed files
with
466 additions
and
564 deletions.
There are no files selected for viewing
115 changes: 0 additions & 115 deletions
115
.github/workflows/ci-integration-tests-gcp.patch-external.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# Workflow patches for skipping CI tests on PRs from external repositories | ||
name: Run tests | ||
|
||
# Run on PRs from external repositories, let them pass, and then Mergify will check them. | ||
# GitHub doesn't support filtering workflows by source branch names, so we have to do it for each | ||
# job. | ||
on: | ||
pull_request: | ||
|
||
#! IMPORTANT | ||
#! | ||
#! The job names in `sub-ci-unit-tests-docker.yml`, `sub-ci-integration-tests-gcp.yml`, | ||
#! `ci-tests.patch.yml` and `ci-tests.patch-external.yml` must be kept in sync. | ||
jobs: | ||
build: | ||
name: Run tests / Build CI Docker / Build images | ||
# Only run on PRs from external repositories. | ||
if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
#### | ||
## The following jobs are related to sub-ci-unit-tests-docker.yml | ||
### | ||
test-all: | ||
name: Run tests / Test all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-fake-activation-heights: | ||
name: Run tests / Test with fake activation heights | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-empty-sync: | ||
name: Run tests / Test checkpoint sync from empty state | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-lightwalletd-integration: | ||
name: Run tests / Test integration with lightwalletd | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-configuration-file: | ||
name: Run tests / Test CI default Docker config file / Test default-conf in Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-zebra-conf-path: | ||
name: Run tests / Test CI custom Docker config file / Test custom-conf in Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
|
||
#### | ||
## The following jobs are related to sub-ci-intgration-tests-gcp.yml | ||
### | ||
|
||
# We don't patch the testnet job, because testnet isn't required to merge (it's too unstable) | ||
get-available-disks: | ||
name: Run tests / Check if cached state disks exist for Mainnet / Check if cached state disks exist | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-stateful-sync: | ||
name: Run tests / Zebra checkpoint update / Run sync-past-checkpoint test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
test-update-sync: | ||
name: Run tests / Zebra tip update / Run update-to-tip test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
checkpoints-mainnet: | ||
name: Run tests / Generate checkpoints mainnet / Run checkpoints-mainnet test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
lightwalletd-rpc-test: | ||
name: Run tests / Zebra tip JSON-RPC / Run fully-synced-rpc test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
lightwalletd-transactions-test: | ||
name: Run tests / lightwalletd tip send / Run lwd-send-transactions test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
get-block-template-test: | ||
name: Run tests / get block template / Run get-block-template test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
submit-block-test: | ||
name: Run tests / submit block / Run submit-block test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
lightwalletd-full-sync: | ||
name: Run tests / lightwalletd tip / Run lwd-full-sync test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
lightwalletd-update-sync: | ||
name: Run tests / lightwalletd tip update / Run lwd-update-sync test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
lightwalletd-grpc-test: | ||
name: Run tests / lightwalletd GRPC tests / Run lwd-grpc-wallet test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' |
Oops, something went wrong.