Skip to content

Commit b56f9c4

Browse files
committed
update worfklows
1 parent c5711dd commit b56f9c4

10 files changed

+70
-31
lines changed

.github/workflows/ci-aptos-contract.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@ jobs:
2424
- name: Unzip CLI
2525
run: unzip aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
2626

27+
- name: Check Formatting
28+
run: ./aptos move fmt
29+
if: success() || failure()
30+
31+
- name: Lint
32+
run: ./aptos move lint --check-test-code --dev
33+
if: success() || failure()
34+
2735
- name: Run tests
2836
run: ./aptos move test
37+
if: success() || failure()

.github/workflows/ci-cosmwasm-contract.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
components: rustfmt, clippy
2828
override: true
2929
- name: Format check
30-
run: cargo fmt --manifest-path ./target_chains/cosmwasm/Cargo.toml --all -- --check
30+
run: cargo fmt --all -- --check
3131
if: success() || failure()
3232
- name: Clippy check
33-
run: cargo clippy --manifest-path ./target_chains/cosmwasm/Cargo.toml --tests -- --deny warnings
33+
run: cargo clippy --tests -- --deny warnings
3434
if: success() || failure()
3535
- name: Build
3636
run: cargo build --verbose

.github/workflows/ci-fortuna.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
toolchain: 1.82.0
2121
override: true
2222
- name: Format check
23-
run: cargo fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --check
23+
run: cargo fmt --all -- --check
2424
if: success() || failure()
2525
- name: Clippy check
26-
run: cargo clippy --manifest-path ./apps/fortuna/Cargo.toml --tests -- --deny warnings
26+
run: cargo clippy --tests -- --deny warnings
2727
if: success() || failure()
2828
- name: Run executor tests
29-
run: cargo test --manifest-path ./apps/fortuna/Cargo.toml
29+
run: cargo test
3030
if: success() || failure()

.github/workflows/ci-fuel-contract.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,9 @@ jobs:
3030
run: forc build --verbose
3131
- name: Run tests with Forc
3232
run: forc test --verbose
33-
if: success() || failure()
3433
- name: Rust add wasm32-unknown-unknown target
3534
run: rustup target add wasm32-unknown-unknown
36-
if: success() || failure()
37-
- name: Format check
38-
run: cargo fmt --manifest-path ./target_chains/fuel/contracts/Cargo.toml --all -- --check
39-
if: success() || failure()
40-
- name: Clippy check
41-
run: cargo clippy --manifest-path ./target_chains/fuel/contracts/Cargo.toml --tests -- --deny warnings
42-
if: success() || failure()
4335
- name: Build
4436
run: cargo build --verbose
45-
if: success() || failure()
4637
- name: Run tests
4738
run: cargo test --verbose
48-
if: success() || failure()

.github/workflows/ci-hermes-server.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
with:
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
2727
- name: Format check
28-
run: cargo fmt --manifest-path ./apps/hermes/server/Cargo.toml --all -- --check
28+
run: cargo fmt --all -- --check
2929
if: success() || failure()
3030
- name: Clippy check
31-
run: cargo clippy --manifest-path ./apps/hermes/server/Cargo.toml --tests -- --deny warnings
31+
run: cargo clippy --tests -- --deny warnings
3232
if: success() || failure()
3333
- name: Run executor tests
34-
run: cargo test --manifest-path ./apps/hermes/server/Cargo.toml
34+
run: cargo test
3535
if: success() || failure()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
- name: check Cargo.toml formatting
3838
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
3939
- name: Format check
40-
run: cargo fmt --manifest-path ./lazer/Cargo.toml --all -- --check
40+
run: cargo fmt --all -- --check
4141
if: success() || failure()
4242
- name: Clippy check
43-
run: cargo clippy --manifest-path ./lazer/Cargo.toml --all-targets -- --deny warnings
43+
run: cargo clippy --all-targets -- --deny warnings
4444
if: success() || failure()
4545
- name: Build Solana programs
4646
run: cargo build-sbf

.github/workflows/ci-message-buffer-idl.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Message Buffer IDL Check
1+
name: Message Buffer Check
22
on:
33
pull_request:
44
paths:
@@ -8,7 +8,7 @@ on:
88
- main
99
jobs:
1010
abi-check:
11-
name: Check Message Buffer IDL files are up to date
11+
name: Check Message Buffer formatting & IDL files
1212
runs-on: ubuntu-latest
1313
defaults:
1414
run:
@@ -33,10 +33,6 @@ jobs:
3333
- name: Install Anchor
3434
run: |
3535
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
36-
- name: Build and generate IDLs
37-
run: anchor build
38-
- name: Copy anchor target files
39-
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
4036
# Libusb is a build requirement for the node-hid package and so pnpm
4137
# install will fail if this isn't in the build environment and if a
4238
# precompiled binary isn't found.
@@ -46,10 +42,21 @@ jobs:
4642
name: Install pnpm
4743
- name: Install prettier globally
4844
run: pnpm install -g [email protected]
45+
- name: Build and generate IDLs
46+
run: anchor build
47+
- name: Copy anchor target files
48+
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
4949
- name: Run prettier (to avoid pre-commit failures)
5050
run: |
5151
pnpm dlx [email protected] --write "./idl/*"
5252
- name: Check IDL changes
5353
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for
5454
# the current version of the contract and update idl directory.
5555
run: git diff --exit-code idl/*
56+
if: success() || failure()
57+
- name: Cargo format
58+
run: cargo fmt --all -- --check
59+
if: success() || failure()
60+
- name: Cargo clippy
61+
run: cargo clippy --tests -- --deny warnings
62+
if: success() || failure()
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Pythnet SDK
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- pythnet/pythnet_sdk/**
7+
push:
8+
branches: [main]
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: Swatinem/rust-cache@v2
15+
with:
16+
workspaces: "pythnet/pythnet_sdk -> target"
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: 1.82.0
21+
override: true
22+
- name: Format check
23+
run: cargo fmt --all -- --check
24+
if: success() || failure()
25+
- name: Clippy check
26+
run: cargo clippy --tests -- --deny warnings
27+
if: success() || failure()
28+
- name: Run executor tests
29+
run: cargo test
30+
if: success() || failure()

.github/workflows/ci-remote-executor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: governance/remote_executor
1215
steps:
1316
- uses: actions/checkout@v2
1417
- uses: actions/setup-python@v2
@@ -26,11 +29,11 @@ jobs:
2629
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"
2730
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
2831
- name: Format check
29-
run: cargo fmt --manifest-path ./governance/remote_executor/Cargo.toml --all -- --check
32+
run: cargo fmt --all -- --check
3033
if: success() || failure()
3134
- name: Clippy check
32-
run: cargo clippy --manifest-path ./governance/remote_executor/Cargo.toml --tests -- --deny warnings
35+
run: cargo clippy --tests -- --deny warnings
3336
if: success() || failure()
3437
- name: Run executor tests
35-
run: cargo test-sbf --manifest-path ./governance/remote_executor/Cargo.toml
38+
run: cargo test-sbf
3639
if: success() || failure()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
sh -c "$(curl -sSfL https://release.solana.com/v1.16.20/install)"
3434
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
3535
- name: Format check
36-
run: cargo fmt --manifest-path ./target_chains/solana/Cargo.toml --all -- --check
36+
run: cargo fmt --all -- --check
3737
if: success() || failure()
3838
- name: Clippy check
39-
run: cargo clippy --manifest-path ./target_chains/solana/Cargo.toml --tests -- --deny warnings
39+
run: cargo clippy --tests -- --deny warnings
4040
if: success() || failure()
4141
- name: Build
4242
run: cargo-build-sbf

0 commit comments

Comments
 (0)