Skip to content

Commit 1912a11

Browse files
committed
chore(lazer): add CI
1 parent f3c5274 commit 1912a11

File tree

3 files changed

+100
-0
lines changed

3 files changed

+100
-0
lines changed

.github/workflows/ci-lazer-evm.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Lazer EVM Test"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- lazer/evm/**
9+
10+
jobs:
11+
lazer-evm-test:
12+
name: Lazer EVM Test
13+
runs-on: ubuntu-22.04
14+
defaults:
15+
run:
16+
working-directory: lazer/evm
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
- name: Install Foundry
22+
uses: foundry-rs/foundry-toolchain@v1
23+
- name: Check formatting
24+
run: forge fmt --check
25+
- name: Check build
26+
run: forge build --sizes
27+
- name: Run tests
28+
run: forge test -vvv
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Lazer Publisher Test"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- lazer/publisher/**
9+
10+
jobs:
11+
lazer-publisher-test:
12+
name: Lazer Publisher Test
13+
runs-on: ubuntu-22.04
14+
defaults:
15+
run:
16+
working-directory: lazer/publisher
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions-rust-lang/setup-rust-toolchain@v1
20+
with:
21+
toolchain: 1.81.0
22+
- name: install extra tools
23+
run: |
24+
cargo install --locked [email protected]
25+
sudo apt-get install -y protobuf-compiler
26+
- name: check Cargo.toml formatting
27+
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
28+
- name: check Rust formatting
29+
run: cargo +1.81.0 fmt --all
30+
- name: check Rust clippy
31+
run: cargo +1.81.0 clippy --all-targets -- --deny warnings
32+
- name: test
33+
run: cargo test

.github/workflows/ci-lazer-solana.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Lazer Solana Test"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- lazer/solana/**
9+
10+
jobs:
11+
lazer-solana-test:
12+
name: Lazer Solana Test
13+
runs-on: ubuntu-22.04
14+
defaults:
15+
run:
16+
working-directory: lazer/solana
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions-rust-lang/setup-rust-toolchain@v1
20+
with:
21+
toolchain: 1.81.0
22+
- name: install extra tools
23+
run: |
24+
cargo install --locked [email protected]
25+
sudo apt-get install -y protobuf-compiler
26+
- name: Install Solana Cli
27+
run: |
28+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
29+
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
30+
- name: check Cargo.toml formatting
31+
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
32+
- name: check Rust formatting
33+
run: cargo +1.81.0 fmt --all
34+
- name: check Rust clippy
35+
run: cargo +1.81.0 clippy --all-targets -- --deny warnings
36+
- name: Build Solana programs
37+
run: cargo build-sbf
38+
- name: test
39+
run: cargo test

0 commit comments

Comments
 (0)