-
Notifications
You must be signed in to change notification settings - Fork 22
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
202 additions
and
7 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,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: / | ||
schedule: | ||
interval: daily | ||
ignore: | ||
- dependency-name: "*" | ||
# patch and minor updates don't matter for libraries | ||
# remove this ignore rule if your package has binaries | ||
update-types: | ||
- "version-update:semver-patch" | ||
- "version-update:semver-minor" |
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,75 @@ | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
name: check | ||
jobs: | ||
clippy: | ||
runs-on: ${{ matrix.os }} | ||
name: clippy / ${{ matrix.os }} / stable | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
components: clippy | ||
- name: cargo clippy --all-features --all-targets --tests --workspace -- -D warnings | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features --all-targets --tests --workspace -- -D warnings | ||
doc: | ||
runs-on: ${{ matrix.os }} | ||
name: doc / ${{ matrix.os }} / stable | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
- name: cargo doc --all-features --no-deps | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --all-features --no-deps | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs | ||
fmt: | ||
runs-on: ${{ matrix.os }} | ||
name: fmt / ${{ matrix.os }} / stable | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt | ||
- name: cargo fmt --all --check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
name: test | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} / stable | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- name: cargo install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
- name: cargo generate-lockfile --manifest-path num-format/Cargo.toml | ||
if: hashFiles('Cargo.lock') == '' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
- name: cargo hack --package num-format --feature-powerset test --locked | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: hack | ||
args: --package num-format --feature-powerset test --locked | ||
- name: cargo hack --package num-format-benches --feature-powerset test --locked | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: hack | ||
args: --package num-format-benches --feature-powerset test --locked | ||
- name: cargo hack --package num-format-dev --feature-powerset test --locked | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: hack | ||
args: --package num-format-dev --feature-powerset test --locked | ||
test-msrv: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} / ${{ matrix.msrv }} | ||
# we use a matrix here just because env can't be used in job names | ||
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
msrv: [1.58.0] | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install ${{ matrix.msrv }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.msrv }} | ||
default: true | ||
- name: cargo install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
- name: cargo generate-lockfile --manifest-path num-format/Cargo.toml | ||
if: hashFiles('Cargo.lock') == '' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
args: --manifest-path num-format/Cargo.toml | ||
- name: cargo hack --package num-format --feature-powerset test --locked | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: hack | ||
args: --package num-format --feature-powerset test --locked | ||
test-msrv-no-default-features: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} / ${{ matrix.msrv }} | ||
# we use a matrix here just because env can't be used in job names | ||
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
msrv: [1.56.0] | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install ${{ matrix.msrv }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.msrv }} | ||
default: true | ||
- name: cargo generate-lockfile --manifest-path num-format/Cargo.toml | ||
if: hashFiles('Cargo.lock') == '' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
args: --manifest-path num-format/Cargo.toml | ||
- name: cargo test --package num-format --no-default-features --locked | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --package num-format --no-default-features --locked |
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
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