mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-06 15:17:19 +02:00
Update and rename rust-fmt.yml to rust-check.yml
This commit is contained in:
parent
449e37bf3e
commit
4669ffad9d
20
.github/workflows/rust-check.yml
vendored
Normal file
20
.github/workflows/rust-check.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Rust Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "rewrite" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "rewrite" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: mirlahiji/rust-action@master
|
||||||
|
with:
|
||||||
|
args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test
|
27
.github/workflows/rust-fmt.yml
vendored
27
.github/workflows/rust-fmt.yml
vendored
@ -1,27 +0,0 @@
|
|||||||
name: Rust Fmt
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "rewrite" ]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
format:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Formatting Code
|
|
||||||
run: cargo fmt --all --verbose
|
|
||||||
- name: Create Pull Request
|
|
||||||
run: |
|
|
||||||
gh_pr_up() { gh pr create $* || gh pr edit $* }
|
|
||||||
gh_pr_up --title "Bot Fix: Formatting" --body "Fix formatting with cargo fmt"
|
|
Loading…
x
Reference in New Issue
Block a user