-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): module generation + fix BUF cache permission issue (#239)
* test: ICS with custom module generation * fix workflow (ref spawn ../) * move spawn bin into path * try `/.cache/buf` directly * rm the x * try a mount instead? (like cw optimizer) * tmp cache buf v2 * /module * set BUF_CACHE_DIR * rm comment * `--ibc-module` e2e * remove chmod req. from docs
- Loading branch information
1 parent
95a3100
commit a10b085
Showing
4 changed files
with
43 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ on: | |
type: string | ||
required: true | ||
description: 'The command which runs the chain via the shell' | ||
spawn-extra-cmd: | ||
type: string | ||
required: false | ||
description: 'Extra command to run after the chain is created' | ||
|
||
env: | ||
GO_VERSION: 1.22.3 | ||
|
@@ -62,19 +66,31 @@ jobs: | |
uses: actions/download-artifact@master | ||
with: | ||
name: spawn | ||
path: /home/runner/go/bin | ||
|
||
- name: Spawn Permission | ||
run: chmod +x ./spawn && ls -l | ||
- name: Spawn Permission # put into path | ||
run: chmod +x /home/runner/go/bin/spawn && ls -l | ||
|
||
# === Chain Creation & Validation === | ||
- name: Spawn Gen - '${{inputs.id}}' | ||
run: ${{ inputs.spawn-create-cmd }} | ||
run: | | ||
git config --global --add url."[email protected]:".insteadOf "https://github.com/" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
${{ inputs.spawn-create-cmd }} | ||
pwd | ||
- name: Spawn Extra Generation | ||
if : ${{ inputs.spawn-extra-cmd }} | ||
run: ${{ inputs.spawn-extra-cmd }} | ||
|
||
- name: Build and Run '${{inputs.id}}' | ||
run: | | ||
cd mychain | ||
${{ inputs.start-chain-cmd }} | ||
# Runs the unit test after the chain is started in the background | ||
# This way the work is parallelized | ||
- name: Unit Test - '${{inputs.id}}' | ||
run: | | ||
cd mychain | ||
|
@@ -95,4 +111,4 @@ jobs: | |
done | ||
lsof -i tcp:26657 | awk 'NR!=1 {print $2}' | xargs kill || true | ||
exit 1 | ||
exit 1 |
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