Skip to content

Commit

Permalink
attempt to update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
N8BWert committed Sep 6, 2024
1 parent ef28b0f commit 5ba5981
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 8 deletions.
93 changes: 86 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,89 @@ name: Unit Testing
run-name: Unit Testing
on: [push]
jobs:
Rust-Unit-Tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: "test local rust"
uses: Kristories/cargo-test@v1.0.0
Cargo-Check:
runs-on: ubuntu-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: Setup toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Cargo Check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-targets

Cargo-Test:
runs-on: ubuntu-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Cargo Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets

Cargo-Clippy:
runs-on: ubuntu-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: Run Cargo Clippy
uses: actions-rs/cargo@v1
with:
command: clippy

Cargo-Rustfmt:
runs-on: ubuntu-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check

Cargo-Check-Examples:
runs-on: ubuntu-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
- name: cd minimal-client-server
command: cd "$GITHUB_WORKSPACE/examples/minimal-client-server"
- name: Cargo Check Minimal Client Server Example
uses: actions-rs/cargo@v1
with:
command: check
- name: cd minimal-publisher-subscriber
command: cd "$GITHUB_WORKSPACE/examples/minimal-publisher-subscriber"
- name: Cargo Check Minimal Publisher Subscriber Example
uses: actions-rs/cargo@v1
with:
command: check
- name: cd minimal-update-client-server
command: cd "$GITHUB_WORKSPACE/examples/minimal-update-client-server"
- name: Cargo Check Minimal Update Client Server Example
uses: actions-rs/cargo@v1
with:
command: check
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ default-members = [
resolver = "2"

[workspace.package]
name = "ncomm"
version = "1.0.0"
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 5ba5981

Please sign in to comment.