Skip to content

Commit

Permalink
feat: Upgrade Github actions for better Rust toolchain fixes #2 (#6)
Browse files Browse the repository at this point in the history
* chore: Test Github actions for errors

* feat: Upgrade Github actions script fixes #2

* chore: Add a spacing format issue

* fix: Errors and retry

* fix: Remove unwanted lines
  • Loading branch information
satlead committed Feb 21, 2023
1 parent a3c60be commit 57e554f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

formatting:
name: Format checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rust Format Checker
uses: actions-rust-lang/rustfmt@v1
test:
name: Run Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: olix0r/cargo-action-fmt/setup@v2
- name: Format Check
run: cargo check -q --message-format=json | cargo-action-fmt
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
3 changes: 3 additions & 0 deletions core/main/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
fn main() {
println!("Main method");
if true {
println!("This should print a format warning");
}
}
1 change: 1 addition & 0 deletions core/sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 57e554f

Please sign in to comment.