From e72c8790aae75becac6ba6f2ade17f03cfd9184d Mon Sep 17 00:00:00 2001 From: ebin-mathews Date: Thu, 11 Jan 2024 14:29:02 -0500 Subject: [PATCH] Naming fixes --- .../{lint_build_test.yml => build.yml} | 5 +- .github/workflows/lint.yml | 47 +++++++++++++++++++ ...lease_container.yml => release_latest.yml} | 0 3 files changed, 48 insertions(+), 4 deletions(-) rename .github/workflows/{lint_build_test.yml => build.yml} (82%) create mode 100644 .github/workflows/lint.yml rename .github/workflows/{release_container.yml => release_latest.yml} (100%) diff --git a/.github/workflows/lint_build_test.yml b/.github/workflows/build.yml similarity index 82% rename from .github/workflows/lint_build_test.yml rename to .github/workflows/build.yml index 510af17..2655f9e 100644 --- a/.github/workflows/lint_build_test.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: build +name: Build on: pull_request: @@ -24,9 +24,6 @@ jobs: with: caller-workflow-name: test - - name: Clippy check - run: cargo clippy --all-features --all-targets --tests -- -D warnings - - name: Run tests run: | ./run_proxy_server.sh && ./stop_proxy_server.sh diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..13c494b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,47 @@ +name: Lint +description: 'Run linters on the repository' + +on: + pull_request: + +jobs: + lint_proxy_server: + runs-on: ubuntu-20.04-16c-64g + defaults: + run: + working-directory: ./proxy_server + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Sanity Check + run: | + cat /proc/cpuinfo + + - name: Setup Rust + uses: ./.github/actions/setup-rust + with: + caller-workflow-name: test + + - name: Setup Rust tools + run: | + cargo install cargo-sort + cargo install cargo-udeps + shell: bash + + - name: cargo sort + run: cargo sort --workspace --check + shell: bash + + - name: cargo fmt + run: cargo fmt --all --check + shell: bash + + - name: Clippy check + run: cargo clippy --all-features --all-targets --tests -- -D warnings + + - name: cargo udeps + run: cargo udeps --all-features --all-targets --tests + shell: bash diff --git a/.github/workflows/release_container.yml b/.github/workflows/release_latest.yml similarity index 100% rename from .github/workflows/release_container.yml rename to .github/workflows/release_latest.yml