-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add goimports reviser pre commit hook and update tooling (#792)
- Loading branch information
1 parent
7119edb
commit 892bbb4
Showing
9 changed files
with
53 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,19 @@ on: | |
workflow_dispatch: | ||
jobs: | ||
end_to_end_test: | ||
runs-on: [ "arm-linux" ] | ||
runs-on: ["arm-linux"] | ||
env: | ||
GOPRIVATE: "github.com/dymensionxyz/*" | ||
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}" | ||
ROLLER_CONFIG_PATH: "${{ github.workspace }}/tmp/e2e_roller_config" # Setting the environment variable | ||
ROLLER_CONFIG_PATH: "${{ github.workspace }}/tmp/e2e_roller_config" # Setting the environment variable | ||
ROLLAPP_ID: "endtoend_1-${{ github.run_number }}" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.10 | ||
go-version-file: go.mod | ||
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
- name: Init a local rollapp within screen | ||
run: | | ||
# Start a new detached screen session named "rollapp_init" | ||
|
@@ -32,37 +31,31 @@ jobs: | |
# Kill the screen session after the command is done | ||
screen -S rollapp_init -X quit | ||
- name: Run the local hub | ||
run: | | ||
screen -dmS hub-session /usr/local/bin/dymd start --home "$ROLLER_CONFIG_PATH/local-hub" | ||
sleep 5 | ||
HUB_PID=$(pgrep -f 'dymd start --home' | head -n 1) | ||
echo "Captured PID: $HUB_PID" | ||
echo "HUB_PID=$HUB_PID" >> $GITHUB_ENV | ||
- name: Fund the RollApp addresses | ||
run: | | ||
HUB_SEQ_ADDR=$(go run . keys list --home $ROLLER_CONFIG_PATH --output json | jq -r '.hub_sequencer') | ||
echo "HUB_SEQ_ADDR=$HUB_SEQ_ADDR" >> $GITHUB_ENV | ||
RELAYER_ROLLAPP_ADDR=$(go run . keys list --home $ROLLER_CONFIG_PATH --output json | jq -r '."relayer-hub-key"') | ||
/usr/local/bin/dymd tx bank multi-send local-user $HUB_SEQ_ADDR $RELAYER_ROLLAPP_ADDR 1adym --yes -b block --keyring-backend test --home $ROLLER_CONFIG_PATH/local-hub --node http://127.0.0.1:36657 | ||
sleep 10 | ||
- name: Register the rollapp | ||
run: | | ||
go run . tx register --home $ROLLER_CONFIG_PATH --no-output | ||
- name: Run the rollapp | ||
run: | | ||
go run . run --home $ROLLER_CONFIG_PATH --no-output & | ||
echo "ROLLAPP_PID=$!" >> $GITHUB_ENV | ||
- name: Execute IBC relay tester | ||
run: | | ||
chmod +x ./scripts/ibc_relay_tester.sh | ||
DEST_ADDR=$HUB_SEQ_ADDR ROLLAPP_ID=$ROLLAPP_ID ROLLER_CONFIG_PATH=$ROLLER_CONFIG_PATH ./scripts/ibc_relay_tester.sh 2> script_errors.log | ||
- name: Terminate the rollapp | ||
if: always() | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,15 @@ on: | |
- v* | ||
branches: | ||
- main | ||
paths: | ||
- '**/*.go' | ||
- go.mod | ||
- go.sum | ||
pull_request: | ||
paths: | ||
- '**/*.go' | ||
- go.mod | ||
- go.sum | ||
jobs: | ||
golangci-lint: | ||
name: lint | ||
|
@@ -14,23 +22,14 @@ jobs: | |
GOPRIVATE: "github.com/dymensionxyz/*" | ||
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}" | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21" | ||
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | ||
version: v1.59.1 | ||
only-new-issues: true | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: markdownlint-cli | ||
uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
config-file: .markdownlint.yaml |
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,18 @@ | ||
name: Linters | ||
on: | ||
push: | ||
paths: | ||
- '**/*.md' | ||
pull_request: | ||
paths: | ||
- '**/*.md' | ||
jobs: | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: markdownlint-cli | ||
uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
config-file: .markdownlint.yaml |
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.22 | ||
go-version-file: go.mod | ||
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
- name: Build | ||
run: make build | ||
|
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