diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac2fdd8e3..4bd5108ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,6 @@ jobs: docs: name: Docs runs-on: ubuntu-latest - needs: package steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/.github/workflows/pr-ci-workflow.yml b/.github/workflows/pr-ci-workflow.yml index 454eb9190..5f35e7b23 100644 --- a/.github/workflows/pr-ci-workflow.yml +++ b/.github/workflows/pr-ci-workflow.yml @@ -1,4 +1,4 @@ -name: Linter and tests (PRs) +name: "Build · Lint · Tests" on: workflow_call: diff --git a/.github/workflows/prs-entrypoint.yml b/.github/workflows/prs-entrypoint.yml index 2bf22e722..41a0a7fcc 100644 --- a/.github/workflows/prs-entrypoint.yml +++ b/.github/workflows/prs-entrypoint.yml @@ -1,4 +1,4 @@ -name: PR CI +name: "PR CI" permissions: actions: read @@ -18,7 +18,7 @@ on: jobs: pr_jobs: - name: PR CI + name: "Trigger" # github.event.pull_request object defined here: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2026-03-10#get-a-pull-request if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'gitlabform/gitlabform') || (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != 'gitlabform/gitlabform') }} uses: ./.github/workflows/pr-ci-workflow.yml diff --git a/.github/workflows/tests-acceptance.yml b/.github/workflows/tests-acceptance.yml index 6b7f00b3f..c2edc4067 100644 --- a/.github/workflows/tests-acceptance.yml +++ b/.github/workflows/tests-acceptance.yml @@ -45,6 +45,7 @@ jobs: - name: Run Standard acceptance tests for ${{ matrix.flavor }} flavor run: uv run --no-sync qa test tests/acceptance/standard --cov=. --cov-report=xml --durations=0 --reruns 3 --reruns-delay 10 --log-cli-level=WARNING - name: Upload coverage + if: ${{ secrets.CODECOV_TOKEN != '' }} uses: Wandalen/wretry.action@v3 with: action: codecov/codecov-action@v3 @@ -57,7 +58,6 @@ jobs: acceptance-licensed: name: "GitLab ${{ matrix.tier == 'premium' && 'Premium' || 'Ultimate' }}" - needs: [acceptance-standard] environment: ${{ inputs.environment }} runs-on: ubuntu-latest strategy: @@ -76,11 +76,12 @@ jobs: run: uv sync --frozen --no-dev --group test - name: Start GitLab (${{ matrix.tier }}) in docker env: - GITLAB_EE_LICENSE: ${{ matrix.tier == 'premium' && secrets.GITLAB_EE_LICENSE || secrets.GITLAB_EE_ULTIMATE_LICENSE }} + GITLAB_EE_LICENSE: "${{ matrix.tier == 'premium' && secrets.GITLAB_EE_LICENSE || secrets.GITLAB_EE_ULTIMATE_LICENSE }}" run: uv run --no-sync gitlab-local up - name: Run acceptance Tests for ${{ matrix.tier }} features run: uv run --no-sync qa test tests/acceptance/${{ matrix.tier }} --cov=. --cov-report=xml --durations=0 --reruns 3 --reruns-delay 10 --log-cli-level=WARNING - name: Upload coverage + if: ${{ secrets.CODECOV_TOKEN != '' }} uses: Wandalen/wretry.action@v3 with: action: codecov/codecov-action@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 625612280..e2f5fe101 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,6 +37,7 @@ jobs: - name: Run unit tests run: uv run --no-sync qa test tests/unit --cov=. --cov-report=xml --log-cli-level=WARNING - name: Upload coverage to Codecov + if: ${{ secrets.CODECOV_TOKEN != '' }} uses: Wandalen/wretry.action@v3 with: action: codecov/codecov-action@v3