Skip to content

Commit

Permalink
optimize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SKTT1Ryze committed Oct 11, 2023
1 parent c36d399 commit fd3e71c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request]
on: [pull_request]
name: Runtime Check
jobs:
runtime_check:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust_clippy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request]
on: [pull_request]
name: Rust Clippy Check
jobs:
clippy_check:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/rust_fmt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request]
on: [pull_request]
name: Rust Format Check
jobs:
clippy_check:
Expand All @@ -17,4 +17,3 @@ jobs:
- name: Format Check in Runtime
run: cargo fmt --all -- --check
working-directory: ./runtime

17 changes: 17 additions & 0 deletions .github/workflows/rust_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [pull_request]
name: Rust Test
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Test in LeetCode
run: cargo test
working-directory: ./leetcode

- name: Test in Runtime
run: cargo test
working-directory: ./runtime

0 comments on commit fd3e71c

Please sign in to comment.