Skip to content

Feat/update share, add user, remove user #75

Feat/update share, add user, remove user

Feat/update share, add user, remove user #75

Workflow file for this run

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