Skip to content

Commit

Permalink
Merge pull request #28 from YuukiToriyama/feature/add-clippy-on-githu…
Browse files Browse the repository at this point in the history
…b-actions

PR作成時にClippyが実行されるように設定
  • Loading branch information
YuukiToriyama authored Dec 4, 2023
2 parents a6e2a16 + f053a9f commit 1a0e653
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Unit test & Code format check

on:
push:
branches: [ "main" ]
pull_request:

env:
Expand All @@ -28,13 +26,20 @@ jobs:
continue-on-error: true
- name: Code style check
run: cargo fmt --check
- name: Set up clippy
run: rustup component add clippy
- name: Code review with clippy
uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build check
run: cargo build --verbose
- name: Unit Testing
run: cargo test --verbose
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Unit Testing for Wasm module
run: wasm-pack test --firefox --headless
- name: Build wasm module
run: wasm-pack build --target web --scope toriyama
- name: Unit Testing for Wasm module
run: wasm-pack test --firefox --headless

0 comments on commit 1a0e653

Please sign in to comment.