Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/ci-lazer-evm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Lazer EVM Test"
on:
push:
branches:
- main
pull_request:

jobs:
lazer-evm-test:
name: Lazer EVM Test
runs-on: ubuntu-22.04
defaults:
run:
working-directory: lazer/evm
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Check formatting
run: forge fmt --check
- name: Check build
run: forge build --sizes
- name: Run tests
run: forge test -vvv
32 changes: 32 additions & 0 deletions .github/workflows/ci-lazer-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Lazer Publisher Test"
on:
push:
branches:
- main
pull_request:

jobs:
lazer-publisher-test:
name: Lazer Publisher Test
runs-on: ubuntu-22.04
defaults:
run:
working-directory: lazer/publisher
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
components: clippy, rustfmt
- name: install extra tools
run: |
cargo install --locked [email protected]
sudo apt-get install -y protobuf-compiler
- name: check Cargo.toml formatting
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
- name: check Rust formatting
run: cargo +1.81.0 fmt --all
- name: check Rust clippy
run: cargo +1.81.0 clippy --all-targets -- --deny warnings
- name: test
run: cargo test
38 changes: 38 additions & 0 deletions .github/workflows/ci-lazer-solana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Lazer Solana Test"
on:
push:
branches:
- main
pull_request:

jobs:
lazer-solana-test:
name: Lazer Solana Test
runs-on: ubuntu-22.04
defaults:
run:
working-directory: lazer/solana
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
components: clippy, rustfmt
- name: install extra tools
run: |
cargo install --locked [email protected]
sudo apt-get install -y protobuf-compiler
- name: Install Solana Cli
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
- name: check Cargo.toml formatting
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
- name: check Rust formatting
run: cargo +1.81.0 fmt --all
- name: check Rust clippy
run: cargo +1.81.0 clippy --all-targets -- --deny warnings
- name: Build Solana programs
run: cargo build-sbf
- name: test
run: cargo test