瀏覽代碼

chore: remove pre-commit workflow file

This workflow is now redundant since everything pre-commit does is covered by
more comprehensive CI jobs.

Moving forward, pre-commit should be treated as a devex optimization; no checks
should go into pre-commit alone.
Connor Prussin 8 月之前
父節點
當前提交
504d0b334a
共有 1 個文件被更改,包括 0 次插入83 次删除
  1. 0 83
      .github/workflows/ci-pre-commit.yml

+ 0 - 83
.github/workflows/ci-pre-commit.yml

@@ -1,83 +0,0 @@
-name: Pre-commit checks
-
-on:
-  pull_request:
-    branches: "**"
-  push:
-    branches: [main]
-
-env:
-  PYTHON_VERSION: "3.11"
-  POETRY_VERSION: "1.4.2"
-jobs:
-  pre-commit:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v4
-      - uses: actions-rs/toolchain@v1
-        with:
-          profile: default
-          toolchain: 1.82.0
-      - name: Install Rust versions
-        run: |
-          rustup install 1.73.0
-          rustup install 1.66.1
-      - name: Cache Rust dependencies
-        uses: Swatinem/rust-cache@v2
-        with:
-          workspaces: |
-            apps/fortuna
-            apps/hermes/server
-            target_chains/ethereum/sdk/stylus
-            target_chains/cosmwasm
-            target_chains/fuel/contracts
-            target_chains/solana
-            governance/remote_executor
-            lazer
-            pythnet/message_buffer
-            pythnet/pythnet_sdk
-            pythnet/stake_caps_parameters
-          # We only save the cache from runs on `main` because the cache is ~5GB, and the total Github Cache limit is 10GB.
-          # Branches have their own caches, so saving this cache on PRs can result in evicting the main cache.
-          save-if: ${{ github.ref == 'refs/heads/main' }}
-      - name: Install protoc
-        uses: arduino/setup-protoc@v3
-        with:
-          repo-token: ${{ secrets.GITHUB_TOKEN }}
-      - name: Install poetry
-        run: pipx install poetry
-      - name: Install g++ 12
-        run: |
-          sudo apt-get install g++-12
-          echo "CXX=/usr/bin/g++-12" >> "${GITHUB_ENV}"
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ env.PYTHON_VERSION }}
-        id: setup_python
-      - name: Cache Poetry cache
-        uses: actions/cache@v3
-        with:
-          path: ~/.cache/pypoetry
-          key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
-      # Install Aptos CLI for Lazer contract formatting and linting
-      - name: Download Aptos CLI
-        run: wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v6.1.1/aptos-cli-6.1.1-Ubuntu-22.04-x86_64.zip
-      - name: Install Aptos CLI
-        run: |
-          unzip aptos-cli-6.1.1-Ubuntu-22.04-x86_64.zip
-          sudo mv aptos /usr/local/bin/
-          chmod +x /usr/local/bin/aptos
-          aptos update movefmt
-      - uses: actions/setup-node@v4
-        with:
-          node-version-file: "package.json"
-      # Libusb is a build requirement for the node-hid package and so pnpm
-      # install will fail if this isn't in the build environment and if a
-      # precompiled binary isn't found.
-      - name: Install libusb
-        run: sudo apt install -y libusb-1.0-0-dev libudev-dev
-      - uses: pnpm/action-setup@v4
-        name: Install pnpm
-        with:
-          run_install: true
-      - uses: pre-commit/action@v3.0.0