From 4669ffad9df0d1fef3fde22d307b6d452384a5ae Mon Sep 17 00:00:00 2001 From: LDprg <71488985+LDprg@users.noreply.github.com> Date: Fri, 14 Jul 2023 17:28:55 +0200 Subject: [PATCH] Update and rename rust-fmt.yml to rust-check.yml --- .github/workflows/rust-check.yml | 20 ++++++++++++++++++++ .github/workflows/rust-fmt.yml | 27 --------------------------- 2 files changed, 20 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/rust-check.yml delete mode 100644 .github/workflows/rust-fmt.yml diff --git a/.github/workflows/rust-check.yml b/.github/workflows/rust-check.yml new file mode 100644 index 0000000..48f2a13 --- /dev/null +++ b/.github/workflows/rust-check.yml @@ -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 diff --git a/.github/workflows/rust-fmt.yml b/.github/workflows/rust-fmt.yml deleted file mode 100644 index 85ebc56..0000000 --- a/.github/workflows/rust-fmt.yml +++ /dev/null @@ -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"