diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f50f8d..88efe06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,16 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: - run-pre-commit: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - uses: astral-sh/setup-uv@v5 - with: - enable-cache: false - - run: uv tool run --from pre-commit@latest --with pre-commit-uv --no-cache --python 3.13 pre-commit run --all-files build: strategy: matrix: @@ -56,3 +46,22 @@ jobs: name: artifact-${{ matrix.name }} path: proxy_scraper_checker.dist/ if-no-files-found: error + check: + if: ${{ always() && github.event_name == 'pull_request' }} + needs: + - pre-commit + runs-on: ubuntu-24.04 + steps: + - uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + pre-commit: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false + - run: uv tool run --from pre-commit@latest --with pre-commit-uv --no-cache --python 3.13 pre-commit run --all-files --show-diff-on-failure