-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from waywardmonkeys/switch-to-github-actions
Switch to GitHub actions
- Loading branch information
Showing
3 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
merge_group: | ||
|
||
jobs: | ||
rustfmt: | ||
runs-on: ubuntu-latest | ||
name: cargo fmt | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install stable toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
|
||
- name: cargo fmt | ||
run: cargo fmt --all --check | ||
|
||
test-stable: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
name: cargo clippy + test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: install stable toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
|
||
- name: cargo clippy (default features) | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: cargo test | ||
run: cargo test --all-features |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.