Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 29 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,6 @@ jobs:
- name: Lint Programs
run: pnpm programs:lint

format_and_lint_client_js:
name: Format & Lint Client JS
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup Environment
uses: ./.github/actions/setup

- name: Format Client JS
run: pnpm clients:js:format

- name: Lint Client JS
run: pnpm clients:js:lint

# format_and_lint_client_rust:
# name: Format & Lint Client Rust
# runs-on: ubuntu-latest
# steps:
# - name: Git Checkout
# uses: actions/checkout@v4

# - name: Setup Environment
# uses: ./.github/actions/setup
# with:
# clippy: true
# rustfmt: true

# - name: Format Client Rust
# run: pnpm clients:rust:format

# - name: Lint Client Rust
# run: pnpm clients:rust:lint

build_programs:
name: Build programs
runs-on: ubuntu-latest
Expand All @@ -85,7 +50,7 @@ jobs:
path: ./target/deploy/*.so
if-no-files-found: error

- name: Save Program Builds For Client Jobs
- name: Save Program Builds For Fixtures Job
uses: actions/cache/save@v4
with:
path: ./**/*.so
Expand All @@ -110,4 +75,31 @@ jobs:
solana: true

- name: Test Programs
run: pnpm programs:test
run: RUST_LOG=error pnpm programs:test

run_fixtures:
name: Run Fixtures
runs-on: ubuntu-latest
needs: build_programs
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Purge environment
uses: ./.github/actions/purge

- name: Setup Environment
uses: ./.github/actions/setup
with:
cargo-cache-key: cargo-program-tests
cargo-cache-fallback-key: cargo-programs
solana: true

- name: Restore Program Builds
uses: actions/cache/restore@v4
with:
path: ./**/*.so
key: ${{ runner.os }}-builds-${{ github.sha }}

- name: Run Fixtures
run: RUST_LOG=error pnpm fixtures:run
Loading
Loading