fix(move): route CLAMM fee swaps through StdAddr (#497) #1229
This file contains hidden or 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
| name: Build & Test | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - labeled | |
| paths: | |
| - "**.go" | |
| - "**.mv" | |
| - "**.move" | |
| push: | |
| branches: | |
| - main | |
| - "release/*" | |
| paths: | |
| - "**.go" | |
| - "**.mv" | |
| - "**.move" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-coverage-upload: | |
| name: Run test and upload codecov | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.24 | |
| - name: Install openssl | |
| run: sudo apt-get install libssl-dev | |
| - uses: actions/checkout@v5 | |
| - uses: technote-space/get-diff-action@v4 | |
| with: | |
| PATTERNS: | | |
| **/**.go | |
| go.mod | |
| go.sum | |
| - name: build | |
| run: | | |
| make build | |
| - name: test & coverage report creation | |
| run: | | |
| go test ./... -mod=readonly -timeout 12m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' | |
| if: ${{ env.GIT_DIFF != '' }} | |
| env: | |
| GIT_DIFF: ${{ env.GIT_DIFF }} | |
| - name: filter out DONTCOVER | |
| run: | | |
| excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')" | |
| excludelist+=" $(find ./ -type f -name '*.pb.go')" | |
| for filename in ${excludelist}; do | |
| filename=$(echo $filename | sed 's/^./github.com\/initia-labs\/initia/g') | |
| echo "Excluding ${filename} from coverage report..." | |
| sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt | |
| done | |
| if: ${{ env.GIT_DIFF != '' }} | |
| env: | |
| GIT_DIFF: ${{ env.GIT_DIFF }} | |
| - uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.txt | |
| fail_ci_if_error: true | |
| if: ${{ env.GIT_DIFF != '' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} | |
| env: | |
| GIT_DIFF: ${{ env.GIT_DIFF }} | |
| test-e2e: | |
| name: Run e2e tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.24 | |
| - name: Install openssl | |
| run: sudo apt-get install libssl-dev | |
| - uses: actions/checkout@v5 | |
| - uses: technote-space/get-diff-action@v4 | |
| with: | |
| PATTERNS: | | |
| abcipp/** | |
| integration-tests/e2e/** | |
| - name: run e2e tests | |
| run: make test-e2e | |
| if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'e2e')) || env.GIT_DIFF != '' }} | |
| env: | |
| GIT_DIFF: ${{ env.GIT_DIFF }} | |
| test-fuzz: | |
| name: Run fuzz tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.24 | |
| - name: Install openssl | |
| run: sudo apt-get install libssl-dev | |
| - uses: actions/checkout@v5 | |
| - uses: technote-space/get-diff-action@v4 | |
| with: | |
| PATTERNS: | | |
| abcipp/** | |
| - name: run fuzz tests | |
| run: | | |
| make test-fuzz | |
| if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'fuzz')) || env.GIT_DIFF != '' }} | |
| env: | |
| GIT_DIFF: ${{ env.GIT_DIFF }} |