-
Notifications
You must be signed in to change notification settings - Fork 32
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
85 additions
and
97 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 @@ | ||
msrv = "1.34" |
This file was deleted.
Oops, something went wrong.
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,82 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 2 * * *' | ||
|
||
env: | ||
RUSTFLAGS: -D warnings | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
rust: [nightly, beta, stable] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe. | ||
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} | ||
- name: Install wasm test tools | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
if: startsWith(matrix.os, 'ubuntu') | ||
- name: Run cargo check | ||
run: cargo check --all --all-features --all-targets | ||
if: startsWith(matrix.rust, 'nightly') | ||
- name: Run cargo check (without dev-dependencies to catch missing feature flags) | ||
if: startsWith(matrix.rust, 'nightly') | ||
run: cargo check -Z features=dev_dep | ||
- run: cargo test | ||
- name: Test wasm | ||
run: wasm-pack test --headless --chrome | ||
if: startsWith(matrix.os, 'ubuntu') | ||
- run: cargo bench | ||
if: startsWith(matrix.rust, 'nightly') | ||
|
||
msrv: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# When updating this, the reminder to update the minimum supported | ||
# Rust version in Cargo.toml and .clippy.toml. | ||
rust: ['1.34'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | ||
- run: cargo build | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features -- -W clippy::all | ||
|
||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- run: cargo fmt --all -- --check | ||
|
||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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