Skip to content

Commit d6598dc

Browse files
authored
feat: add clippy rules to the package and check in CI (#135)
* feat: add clippy rules to the package and check in CI * remove unused workflows * add protoc to ci * add setup rust toolchain * update toolchain file to include clippy * add changes in the tests
1 parent 3cf46a4 commit d6598dc

File tree

8 files changed

+144
-128
lines changed

8 files changed

+144
-128
lines changed

.github/workflows/check-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rust-lang/setup-rust-toolchain@v1
14+
- name: Install protoc
15+
uses: arduino/setup-protoc@v3
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
- name: Install dependencies
19+
run: sudo apt-get update && sudo apt-get install libudev-dev
20+
- name: Build
21+
run: cargo build --verbose
22+
- name: Run tests
23+
run: cargo test --verbose
24+
- name: Check lint
25+
run: cargo clippy --all-targets --all-features -- -D warnings

.github/workflows/pyth-sdk-solana.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
defaults:
16-
run:
17-
working-directory: ./pyth-sdk-solana
18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Install dependencies
21-
run: sudo apt-get update && sudo apt-get install libudev-dev protobuf-compiler
22-
- name: Build
23-
run: cargo build --verbose
24-
- name: Run tests
25-
run: cargo test --verbose
2613
test-contract:
2714
runs-on: ubuntu-latest
2815
defaults:

.github/workflows/pyth-sdk.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)