Skip to content

Commit 0de3424

Browse files
authored
Merge pull request #272 from DistinctCodes/revert-271-fix-270
Revert "Fixed wrong CI placement"
2 parents b405b69 + 5bef0ee commit 0de3424

File tree

2 files changed

+53
-143
lines changed

2 files changed

+53
-143
lines changed

.github/workflows/CI.yaml

Lines changed: 0 additions & 143 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: [main, develop]
5+
push:
6+
branches: [main, develop]
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Cache Rust dependencies
16+
uses: actions/cache@v4
17+
with:
18+
path: |
19+
~/.cargo/bin/
20+
~/.cargo/registry/index/
21+
~/.cargo/registry/cache/
22+
~/.cargo/git/db/
23+
target/
24+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-cargo-
27+
28+
- name: Install Rust stable toolchain
29+
uses: dtolnay/rust-toolchain@stable
30+
with:
31+
toolchain: stable
32+
components: rustfmt, clippy
33+
34+
- name: Install Rust nightly toolchain
35+
uses: dtolnay/rust-toolchain@nightly
36+
with:
37+
toolchain: nightly
38+
components: rustfmt, clippy
39+
40+
- name: Install soroban-cli
41+
run: cargo install soroban-cli --locked
42+
43+
- name: Check formatting
44+
run: cargo +nightly fmt --all -- --check
45+
46+
- name: Check compilation
47+
run: cargo +nightly check --all
48+
49+
- name: Run clippy lints
50+
run: cargo +nightly clippy --all -- -D warnings
51+
52+
- name: Run unit tests
53+
run: cargo +nightly test --all

0 commit comments

Comments
 (0)