fix: midas panic with empty rate #2845
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: 'CI' | |
| concurrency: | |
| group: ci-workflow-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| permissions: write-all | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release*' | |
| pull_request: | |
| jobs: | |
| ci: | |
| uses: KyberNetwork/service-framework/.github/workflows/ci.yaml@main | |
| with: | |
| runs-on: ubuntu-latest | |
| secrets: inherit | |
| generate-check: | |
| name: Check generated codes update-to-date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Run "go generate ./..." | |
| run: go generate ./... || true | |
| - name: Check working tree clean after go generate | |
| run: '[ -z "$(git status --porcelain)" ]' |