Skip to content

Commit 67212c5

Browse files
committed
GitHub workflow: on push: pyth-v1.14.17
1 parent 88d292e commit 67212c5

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/pyth.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Check Pythnet
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [pyth-v1.14.17]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: 1.60.0
16+
components: clippy
17+
override: true
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev
22+
- name: Run tests
23+
run: cargo test -p solana-runtime pyth
24+
clippy:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions-rs/toolchain@v1
29+
with:
30+
profile: minimal
31+
toolchain: 1.60.0
32+
components: clippy
33+
override: true
34+
- name: Install dependencies
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev
38+
- name: Check clippy
39+
run: cargo clippy --bins --tests --examples -- --deny warnings
40+
format:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: nightly-2022-04-01
48+
components: rustfmt
49+
override: true
50+
- name: Check formatting
51+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)