Repository navigation
Feat/update share, add user, remove user #75
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: Dynamic-Fee-Sharing | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release_* | |
| env: | |
| SOLANA_CLI_VERSION: 3.1.10 | |
| ANCHOR_CLI_VERSION: 1.0.2 | |
| TOOLCHAIN: 1.93.0 | |
| jobs: | |
| program_changed_files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| program: ${{steps.changed-files-specific.outputs.any_changed}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get specific changed files | |
| id: changed-files-specific | |
| uses: tj-actions/changed-files@v18.6 | |
| with: | |
| files: | | |
| programs/dynamic-fee-sharing | |
| cargo_test: | |
| runs-on: ubuntu-latest | |
| needs: program_changed_files | |
| if: needs.program_changed_files.outputs.program == 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ env.TOOLCHAIN }} | |
| components: clippy | |
| # Cache rust, cargo | |
| - uses: Swatinem/rust-cache@v1 | |
| - run: cargo test --package dynamic-fee-sharing | |
| shell: bash | |
| program_test: | |
| runs-on: ubuntu-latest | |
| needs: program_changed_files | |
| if: needs.program_changed_files.outputs.program == 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-solana | |
| - uses: ./.github/actions/setup-dep | |
| - uses: ./.github/actions/setup-anchor | |
| # Install bun | |
| - uses: oven-sh/setup-bun@v2 | |
| # Install rust + toolchain | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ env.TOOLCHAIN }} | |
| components: clippy | |
| # Cache rust, cargo | |
| - uses: Swatinem/rust-cache@v1 | |
| # Cache node_modules | |
| - uses: actions/cache@v4 | |
| id: cache-node-modules | |
| with: | |
| path: ./node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('./bun.lock') }} | |
| # Testing | |
| - run: bun install | |
| shell: bash | |
| - run: bun run test | |
| shell: bash |