-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
57 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
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,18 @@ | ||
name: Clippy | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
components: clippy, rustfmt | ||
override: true | ||
- name: Run clippy | ||
run: make lint |
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,21 @@ | ||
name: Check minimal version resolution | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check-minver: | ||
name: Test with minimal version resolution | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
profile: minimal | ||
override: true | ||
- uses: taiki-e/install-action@cargo-hack | ||
- uses: taiki-e/install-action@cargo-minimal-versions | ||
- name: Test | ||
run: make check-minver |
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,18 @@ | ||
name: Rustfmt | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
components: clippy, rustfmt | ||
override: true | ||
- name: Run rustfmt | ||
run: make format-check |
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
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,36 @@ | ||
all: test | ||
|
||
check: | ||
@cargo check --all-features | ||
|
||
build: | ||
@cargo build --all-features | ||
|
||
doc: | ||
@cargo doc --all-features | ||
|
||
test: | ||
@echo "CARGO TESTS" | ||
@cargo test | ||
@cargo test --all-features | ||
@cargo test --no-default-features | ||
|
||
check-minver: | ||
@echo "MINVER CHECK" | ||
@cargo minimal-versions check | ||
@cargo minimal-versions check --all-features | ||
@cargo minimal-versions check --no-default-features | ||
|
||
format: | ||
@rustup component add rustfmt 2> /dev/null | ||
@cargo fmt --all | ||
|
||
format-check: | ||
@rustup component add rustfmt 2> /dev/null | ||
@cargo fmt --all -- --check | ||
|
||
lint: | ||
@rustup component add clippy 2> /dev/null | ||
@cargo clippy | ||
|
||
.PHONY: all doc build check test format format-check lint check-minver |