Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI tests #3

Merged
merged 8 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/beta-unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests, Beta Toolchain

on:
push:
branches: main
pull_request:

jobs:
unit-tests-beta:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Beta Unit Tests
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest beta Rust toolchain
uses: dtolnay/rust-toolchain@beta
- name: Run unit tests
run: cargo test
20 changes: 20 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: rustfmt Checks

on:
push:
branches: main
pull_request:

jobs:
rustfmt-checks:
runs-on: ubuntu-latest
name: rustfmt checks
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run rustfmt check
run: cargo fmt --all --check
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Clippy Lints

on:
push:
branches: main
pull_request:

jobs:
clippy-lints-stable:
runs-on: ubuntu-latest
name: Clippy Lints (Stable)
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy Lints
run: cargo clippy --all-features -- -D warnings
clippy-lints-beta:
runs-on: ubuntu-latest
name: Clippy Lints (Beta)
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest beta Rust toolchain
uses: dtolnay/rust-toolchain@beta
with:
components: clippy
- name: Run clippy Lints
run: cargo clippy --all-features -- -D warnings
21 changes: 21 additions & 0 deletions .github/workflows/nightly-unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests, Nightly Toolchain

on:
push:
branches: main
pull_request:

jobs:
unit-tests-nightly:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Nightly Unit Tests
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest nightly Rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Run unit tests
run: cargo test
21 changes: 21 additions & 0 deletions .github/workflows/stable-unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests, Stable Toolchain

on:
push:
branches: main
pull_request:

jobs:
unit-tests-stable:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Stable Unit Tests
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Install the latest stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run unit tests
run: cargo test
Loading