-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add caching to CI operations (#1696)
* Add basic caching * Fix syntax * Fix syntax * Load built image to docker images * This is a blank commit * Cache Go build and dependencies * Fix Go caching path and add temporary move fix for Docker layer caching * Try to build tester with docker compose before * Use cache for unit tests * Move caching for unit tests after repo checkout * Remove Go cache from integration tests * Always run unit tests; do not use cached results from previous runs with -count=1 * Always run unit tests; do not use cached results from previous runs with -count=1 * Add no cache Docker build for comparison * Test code change * Use cache in mode=min * Run integration tests with Go modules cached * Do not use buildx action * Change mount path * Run container with current user * Update docker compose * Echo user * Set permissions of files in bind mount * Clean up * Add Go build cache for local integration test runs. Avoid caching of integration test execution with count=1 * Use unique cache identifier to fall back to cache instead of getting cache hit for this commit when cache is not yet populated * Update cache keys * Adjust cache key * Enable autopeering integration test * Enable caching for all integration tests * Remove prints
- Loading branch information
1 parent
8103bcf
commit 1d816f6
Showing
5 changed files
with
191 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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,23 @@ | ||
version: "3.5" | ||
|
||
services: | ||
tester: | ||
container_name: tester | ||
image: golang@sha256:cefedeae41e0bbbfa20bb1c37c3a43e0001fa541be9732f7bc6a28ecc154e9e4 | ||
working_dir: /tmp/goshimmer/tools/integration-tests/tester | ||
command: /tmp/assets/entrypoint.sh | ||
environment: | ||
- TEST_NAME=${TEST_NAME} | ||
- CURRENT_UID | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- ../../..:/tmp/goshimmer:rw | ||
- ../logs:/tmp/logs | ||
- ../assets:/tmp/assets | ||
- ~/go/pkg:/go | ||
- ~/go/cache:/root/.cache/go-build | ||
- goshimmer-testing-assets:/assets | ||
|
||
volumes: | ||
goshimmer-testing-assets: | ||
name: goshimmer-testing-assets |
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