loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'chore(ci): Enforce test label with CI check' (#5886) from fnetx/test-label-test into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5886
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+44
+44
.forgejo/workflows/merge-requirements.yml
··· 1 + # Copyright 2024 The Forgejo Authors 2 + # SPDX-License-Identifier: MIT 3 + 4 + name: requirements 5 + 6 + on: 7 + pull_request: 8 + types: 9 + - labeled 10 + - edited 11 + - opened 12 + - synchronize 13 + 14 + jobs: 15 + merge-conditions: 16 + runs-on: docker 17 + container: 18 + image: 'code.forgejo.org/oci/node:20-bookworm' 19 + steps: 20 + - name: Debug output 21 + run: | 22 + cat <<'EOF' 23 + ${{ toJSON(github.event) }} 24 + EOF 25 + - name: Missing test label 26 + if: > 27 + !( 28 + contains(toJSON(github.event.pull_request.labels), 'test/present') 29 + || contains(toJSON(github.event.pull_request.labels), 'test/not-needed') 30 + || contains(toJSON(github.event.pull_request.labels), 'test/manual') 31 + ) 32 + run: | 33 + echo "Test label must be set to either 'present', 'not-needed' or 'manual'." 34 + exit 1 35 + - name: Missing manual test instructions 36 + if: > 37 + ( 38 + contains(toJSON(github.event.pull_request.labels), 'test/manual') 39 + && !contains(toJSON(github.event.pull_request.body), '# Test') 40 + ) 41 + run: | 42 + echo "Manual test label is set. The PR description needs to contain test steps introduced by a heading like:" 43 + echo "# Testing" 44 + exit 1