From dfe11273c09004211feef2420c9201d6e18a3914 Mon Sep 17 00:00:00 2001 From: neo773 <62795688+neo773@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:07:13 +0530 Subject: [PATCH 1/3] feat: add lint:fix in CI --- .github/workflows/{benchmark.yml => bot.yml} | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) rename .github/workflows/{benchmark.yml => bot.yml} (74%) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/bot.yml similarity index 74% rename from .github/workflows/benchmark.yml rename to .github/workflows/bot.yml index 87e2bccd17..0029aea187 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/bot.yml @@ -113,3 +113,39 @@ jobs: with: sha: ${{github.event.pull_request.head.sha}} body: ${{steps.get_comment_body.outputs.body}} + + lint: + name: CI:Lint + if: contains(github.event.pull_request.labels.*.name, 'ci:lint') + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + steps: + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + - name: Install Prettier + run: npm install --global prettier + - name: Install Stable Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + - name: Cache Rust Dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: actions/checkout@v4 + - name: Run lint script + run: ./lint.sh + - name: Commit and push if changed + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "style: apply lint fixes" From 8238463f826a9d226fb9a1e2fc46c1b0b890f1ee Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Wed, 18 Oct 2023 11:48:33 +0530 Subject: [PATCH 2/3] testing whitespace changes --- .github/workflows/bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 0029aea187..e39e6e412c 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -148,4 +148,4 @@ jobs: - name: Commit and push if changed uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "style: apply lint fixes" + commit_message: "style: apply lint fixes" From 4b933666f413dd19bb484898e9b57f166e17ecf6 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Thu, 19 Oct 2023 11:14:59 +0530 Subject: [PATCH 3/3] Update .github/workflows/bot.yml --- .github/workflows/bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index e39e6e412c..0029aea187 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -148,4 +148,4 @@ jobs: - name: Commit and push if changed uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "style: apply lint fixes" + commit_message: "style: apply lint fixes"