Skip to content

Commit

Permalink
Merge pull request #3 from chrissimpkins/add-ci-tests
Browse files Browse the repository at this point in the history
Add CI tests
  • Loading branch information
chrissimpkins authored Dec 17, 2023
2 parents 3365cbb + b79a747 commit 2bd40ef
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 155 deletions.
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

0 comments on commit 2bd40ef

Please sign in to comment.