Skip to content

Merge pull request #1 from kobby-pentangeli/feat/solana-support #8

Merge pull request #1 from kobby-pentangeli/feat/solana-support

Merge pull request #1 from kobby-pentangeli/feat/solana-support #8

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: cargo check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Generate contract artifacts
run: |
cd agent/eth
npm ci
npx hardhat compile
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: cargo check
run: cargo check --all-targets --all-features
test:
name: cargo test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Generate contract artifacts
run: |
cd agent/eth
npm ci
npx hardhat compile
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: cargo test
run: cargo test -- --nocapture
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Generate contract artifacts
run: |
cd agent/eth
npm ci
npx hardhat compile
- name: Install nightly + clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: clippy
override: true
- name: cargo clippy
run: cargo clippy -- -D warnings
fmt:
name: rustfmt (check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly + rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
override: true
- name: rustfmt check
run: cargo fmt -- --check
docs:
name: cargo doc (check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Generate contract artifacts
run: |
cd agent/eth
npm ci
npx hardhat compile
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo doc
run: cargo doc --no-deps
# deny:
# name: cargo-deny
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install cargo-deny
# run: cargo install --locked cargo-deny
# - name: cargo deny check
# run: cargo deny check advisories