This repository was archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
28 additions
and
85 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 |
---|---|---|
|
@@ -24,10 +24,10 @@ jobs: | |
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- run: | | ||
make build | ||
if: env.GIT_DIFF |
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 |
---|---|---|
|
@@ -26,11 +26,11 @@ jobs: | |
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
.sol | ||
PATTERNS: | | ||
**/**.sol | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Test contract | ||
run: | | ||
sudo make contract-tools | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,6 @@ jobs: | |
go-version: 1.17 | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
|
@@ -31,3 +30,18 @@ jobs: | |
github-token: ${{ secrets.github_token }} | ||
# Check only if there are differences in the source code | ||
if: "env.GIT_DIFF" | ||
markdown-lint: | ||
name: Run markdown-lint | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
docs/**/*.md | ||
x/**/*.md | ||
README.md | ||
- uses: articulate/[email protected] | ||
# Check only if there are differences in the source code | ||
if: env.GIT_DIFF |
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 |
---|---|---|
|
@@ -43,7 +43,6 @@ jobs: | |
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.sol | ||
**/**.go | ||
go.mod | ||
go.sum | ||
|
@@ -66,74 +65,16 @@ jobs: | |
go-version: 1.17 | ||
check-latest: true | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
- name: test-importer | ||
run: | | ||
make test-import | ||
if: env.GIT_DIFF | ||
|
||
test-solidity: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 240 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
batch: ['1-3', '2-3', '3-3'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
check-latest: true | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/**.sol | ||
**/**.go | ||
tests/solidity/**/*.js | ||
tests/solidity/**/*.sh | ||
go.mod | ||
go.sum | ||
- name: test-solidity | ||
run: | | ||
./scripts/run-solidity-tests.sh --batch=${{ matrix.batch }} | ||
if: env.GIT_DIFF | ||
|
||
liveness-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
check-latest: true | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Install Starport | ||
run: | | ||
curl https://get.starport.network/starport! | bash | ||
if: env.GIT_DIFF | ||
- name: Start Local Network via Starport | ||
run: | | ||
starport chain serve --reset-once -v -c ./starport.yml > starport.out 2>&1 & | ||
if: env.GIT_DIFF | ||
- name: Test Local Network Liveness | ||
- name: test-importer | ||
run: | | ||
sleep 2m | ||
./contrib/scripts/test_localnet_liveness.sh 100 5 50 localhost | ||
make test-import | ||
if: env.GIT_DIFF | ||
|
||
test-rpc: | ||
|