Use u128 for payment amounts (#216) #4
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Clippy | |
| run: make cargo-clippy-check | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Format Check | |
| run: make fmt-check | |
| itest: | |
| name: Integration test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Tests | |
| run: make itest | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Tests | |
| run: make cargo-test | |
| - name: Check git status | |
| uses: ./.github/actions/check-git-status | |
| wasm-clippy: | |
| name: Wasm clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Clippy | |
| run: make wasm-clippy-check | |
| wasm-test: | |
| name: Wasm test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Tests | |
| run: make wasm-test | |
| - name: Check git status | |
| uses: ./.github/actions/check-git-status | |
| flutter: | |
| name: Flutter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: 3.29.0 | |
| - name: Generate bindings | |
| working-directory: packages/flutter | |
| run: make generate-bindings-build-release | |
| docs: | |
| name: Docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Clippy | |
| working-directory: docs/breez-sdk/snippets/rust | |
| run: | | |
| # Explicitly allow clippy::dead_code lint because the functions aren't called in the docs snippets | |
| # Explicitly allow clippy::unused_variables because snippets might have to demonstrate how to get certain variables without using them afterward | |
| cargo clippy -- --allow dead_code --allow unused_variables --deny warnings |