File tree Expand file tree Collapse file tree 3 files changed +96
-0
lines changed Expand file tree Collapse file tree 3 files changed +96
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Lazer EVM Test"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ lazer-evm-test :
10
+ name : Lazer EVM Test
11
+ runs-on : ubuntu-22.04
12
+ defaults :
13
+ run :
14
+ working-directory : lazer/evm
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ with :
18
+ submodules : recursive
19
+ - name : Install Foundry
20
+ uses : foundry-rs/foundry-toolchain@v1
21
+ - name : Check formatting
22
+ run : forge fmt --check
23
+ - name : Check build
24
+ run : forge build --sizes
25
+ - name : Run tests
26
+ run : forge test -vvv
Original file line number Diff line number Diff line change
1
+ name : " Lazer Publisher Test"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ lazer-publisher-test :
10
+ name : Lazer Publisher Test
11
+ runs-on : ubuntu-22.04
12
+ defaults :
13
+ run :
14
+ working-directory : lazer/publisher
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
18
+ with :
19
+ toolchain : 1.81.0
20
+ components : clippy, rustfmt
21
+ - name : install extra tools
22
+ run : |
23
+ cargo install --locked taplo-cli@0.9.3
24
+ sudo apt-get install -y protobuf-compiler
25
+ - name : check Cargo.toml formatting
26
+ run : find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
27
+ - name : check Rust formatting
28
+ run : cargo +1.81.0 fmt --all
29
+ - name : check Rust clippy
30
+ run : cargo +1.81.0 clippy --all-targets -- --deny warnings
31
+ - name : test
32
+ run : cargo test
Original file line number Diff line number Diff line change
1
+ name : " Lazer Solana Test"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ lazer-solana-test :
10
+ name : Lazer Solana Test
11
+ runs-on : ubuntu-22.04
12
+ defaults :
13
+ run :
14
+ working-directory : lazer/solana
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
18
+ with :
19
+ toolchain : 1.81.0
20
+ components : clippy, rustfmt
21
+ - name : install extra tools
22
+ run : |
23
+ cargo install --locked taplo-cli@0.9.3
24
+ sudo apt-get install -y protobuf-compiler
25
+ - name : Install Solana Cli
26
+ run : |
27
+ sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
28
+ echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
29
+ - name : check Cargo.toml formatting
30
+ run : find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
31
+ - name : check Rust formatting
32
+ run : cargo +1.81.0 fmt --all
33
+ - name : check Rust clippy
34
+ run : cargo +1.81.0 clippy --all-targets -- --deny warnings
35
+ - name : Build Solana programs
36
+ run : cargo build-sbf
37
+ - name : test
38
+ run : cargo test
You can’t perform that action at this time.
0 commit comments