Skip to content

Pull Request CI/CD

Pull Request CI/CD #24

Workflow file for this run

name: Pull Request CI/CD
run-name: Pull Request CI/CD
on: [pull_request]
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: Cargo Build Minimal Client Server Example
uses: actions-rs/cargo@v1
with:
command: build
- 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: Cargo Build Minimal Publisher Subscriber Example
uses: actions-rs/cargo@v1
with:
command: build
- 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
- name: Cargo Build Minimal Update Client Server Example
uses: actions-rs/cargo@v1
with:
command: build
- name: cd rerun-publisher
run: cd "$GITHUB_WORKSPACE/examples/rerun-publisher"
- name: Cargo Check Rerun Publisher Example
uses: actions-rs/cargo@v1
with:
command: check
- name: Cargo Build Rerun Publisher Example
uses: actions-rs/cargo@v1
with:
command: build