mirror of
https://github.com/yewprint/yewprint
synced 2025-02-16 12:08:25 +00:00
Run cargo fmt on nightly (#34)
This commit is contained in:
parent
127fe4d515
commit
e17d3eefc8
2 changed files with 15 additions and 5 deletions
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
|
@ -16,11 +16,21 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: cargo fmt -- --check
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
- run: cargo test --all-features --verbose
|
||||
- run: cargo doc --verbose --all-features
|
||||
|
||||
checks:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: rustup install --profile default nightly
|
||||
# NOTE: we use nightly here to enable the options error_on_line_overflow and
|
||||
# error_on_unformatted
|
||||
- run: cargo +nightly fmt -- --check
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features -- -D warnings
|
||||
- run: cargo test --all-features --verbose
|
||||
- run: cargo doc --verbose --all-features
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[build]
|
||||
publish = "public"
|
||||
command = "curl -sSL https://sh.rustup.rs | sh -s -- -q -y && source $HOME/.cargo/env && curl -sSL https://github.com/rustwasm/wasm-pack/releases/download/v0.9.1/wasm-pack-v0.9.1-x86_64-unknown-linux-musl.tar.gz | tar xzO wasm-pack-v0.9.1-x86_64-unknown-linux-musl/wasm-pack > $HOME/.cargo/bin/wasm-pack && chmod +x $HOME/.cargo/bin/wasm-pack && ./build.sh"
|
||||
command = "curl -sSL https://sh.rustup.rs | sh -s -- -q -y --profile minimal && source $HOME/.cargo/env && curl -sSL https://github.com/rustwasm/wasm-pack/releases/download/v0.9.1/wasm-pack-v0.9.1-x86_64-unknown-linux-musl.tar.gz | tar xzO wasm-pack-v0.9.1-x86_64-unknown-linux-musl/wasm-pack > $HOME/.cargo/bin/wasm-pack && chmod +x $HOME/.cargo/bin/wasm-pack && ./build.sh"
|
||||
|
|
Loading…
Add table
Reference in a new issue