Skip to content

test: fuzz trident 0.12.0 tests (#312) #386

test: fuzz trident 0.12.0 tests (#312)

test: fuzz trident 0.12.0 tests (#312) #386

Workflow file for this run

name: "CI"
concurrency:
cancel-in-progress: true
group: ${{github.workflow}}-${{github.ref}}
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
- "staging"
jobs:
ci:
runs-on: "macos-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: "Set up Sablier devkit and install Node.js dependencies"
uses: "sablier-labs/devkit/actions/setup@main"
with:
package-manager: "bun"
- name: "Set up Rust, Solana, and Anchor"
uses: "sablier-labs/gha-utils/.github/actions/anchor-toolchain@main"
with:
anchor-version: "0.31.1"
rust-version: "nightly"
solana-version: "2.1.21"
- name: "Cache Anchor build artifacts"
id: "cache-build"
uses: "sablier-labs/gha-utils/.github/actions/solana-cache@main"
with:
cache-path: target
- name: "Cache Trident CLI"
id: "cache-trident"
uses: "actions/cache@v4"
with:
path: "~/.cargo/bin/trident"
key: "trident-cli-${{ runner.os }}-0.12.0"
- name: "Install Trident CLI"
if: steps.cache-trident.outputs.cache-hit != 'true' && steps.cache-build.outputs.cache-status != 'primary'
run: "cargo install trident-cli --version 0.12.0 --locked"
- name: "Build the programs"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just build"
- name: "Run the Rust code checks"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just rust-check"
- name: "Run the Trident code checks"
run: "just rust-check-trident"
- name: "Run the other code checks"
run: | # shell
just prettier-check
just biome-check
just tsc-check
- name: "Run the tests"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just test"
- name: "Add summary"
run: | # shell
echo "## CI result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY