Skip to content

Commit

Permalink
fix: resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocdias committed Aug 14, 2024
1 parent 4cd9f17 commit 1bd750e
Show file tree
Hide file tree
Showing 19 changed files with 1,951 additions and 282 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Rust compile & test

on:
push:
tags:
- "*"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Run tests (Native)
run: cargo nextest run --verbose --release
- name: Run tests (WASM)
run: wasm-pack test --release --headless --chrome
- name: Upload test results
uses: softprops/action-gh-release@v1
with:
files: target/nextest/default/junit.xml
35 changes: 16 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Rust compile & test

on:
Expand All @@ -17,23 +18,19 @@ jobs:
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- run: cargo check --tests --benches
- run: cargo build --verbose
- run: cargo clippy -- -D warnings
- name: Run tests (Native)
run: cargo nextest run --verbose --release
- name: Run tests (WASM)
run: wasm-pack test --release --headless --chrome
- name: Upload test results
uses: softprops/action-gh-release@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
files: target/nextest/default/junit.xml
components: clippy
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- run: cargo check --tests --benches
- run: cargo build --verbose
- run: cargo clippy -- -D warnings
- name: Run tests (Native)
run: cargo nextest run --verbose --release
- name: Run tests (WASM)
run: wasm-pack test --release --headless --chrome
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
target
Cargo.lock
*.swp
*.swo
tags
Expand Down
Loading

0 comments on commit 1bd750e

Please sign in to comment.