explicitly disable plugin when MIRRORD_ACTIVE=0
(#155)
#660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
env: | |
MIRRORD_TELEMETRY: false | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- 'gh-readonly-queue/**' | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened, ready_for_review] | |
# Cancel previous runs on the same PR. | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
towncrier_check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- run: uv python install | |
- run: uv venv | |
- name: install towncrier | |
run: uv pip install towncrier==23.11.0 | |
- name: verify newsfragment exist | |
run: uv run towncrier check | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.15.x | |
- run: | | |
npm install --no-package-lock --no-save eslint | |
npm run lint | |
e2e: | |
uses: ./.github/workflows/reusable_e2e.yaml | |
# We need some "accummulation" job here because bors fails (timeouts) to | |
# listen on matrix builds. | |
# Hence, we have some kind of dummy here that bors can listen on | |
ci-success: | |
name: ci | |
# We want this to run even if some of the required jobs got skipped | |
if: always() | |
needs: [towncrier_check, e2e, lint] | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: CI succeeded | |
# We have to do it in the shell since if it's in the if condition | |
# then skipping is considered success by branch protection rules | |
env: | |
CI_SUCCESS: ${{ (needs.e2e.result == 'success') && | |
(needs.towncrier_check.result == 'success') && | |
(needs.lint.result == 'success') }} | |
run: echo $CI_SUCCESS && if [ "$CI_SUCCESS" == "true" ]; then echo "SUCCESS" && exit 0; else echo "Failure" && exit 1; fi |