Unit Testing #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Testing | |
run-name: Unit Testing | |
on: [push] | |
jobs: | |
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: nightly | |
override: true | |
- 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: nightly | |
override: true | |
- 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 | |
with: | |
toolchain: stable | |
- name: cd minimal-client-server | |
run: 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 | |
run: 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 | |
run: cd "$GITHUB_WORKSPACE/examples/minimal-update-client-server" | |
- name: Cargo Check Minimal Update Client Server Example | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check |