|
| 1 | +# Beta-tier proxy, BHoM variant. Bundles the tier's checks plus |
| 2 | +# copyright-compliance (BHoM enforces OSS copyright; the BHE variant omits it). |
| 3 | +# Copy to .github/workflows/ci-beta.yml in each BHoM beta repo. |
| 4 | +# Runs on pull_request, non-blocking until a ruleset requires its checks. |
| 5 | +# Workflow name CI keeps check contexts bare: required contexts are the job names. |
| 6 | + |
| 7 | +name: CI |
| 8 | + |
| 9 | +on: |
| 10 | + pull_request: |
| 11 | + branches: |
| 12 | + - develop |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +jobs: |
| 19 | + build: |
| 20 | + runs-on: windows-2025-vs2026 |
| 21 | + timeout-minutes: 30 |
| 22 | + steps: |
| 23 | + - name: Run build |
| 24 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-build@develop |
| 25 | + with: |
| 26 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 27 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 28 | + |
| 29 | + code-compliance: |
| 30 | + runs-on: windows-2025-vs2026 |
| 31 | + timeout-minutes: 20 |
| 32 | + permissions: |
| 33 | + contents: read |
| 34 | + pull-requests: read |
| 35 | + actions: write |
| 36 | + steps: |
| 37 | + - name: Run code compliance |
| 38 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-compliance@develop |
| 39 | + with: |
| 40 | + check_type: code |
| 41 | + patterns: '*.cs' |
| 42 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 43 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 44 | + |
| 45 | + copyright-compliance: |
| 46 | + runs-on: windows-2025-vs2026 |
| 47 | + timeout-minutes: 20 |
| 48 | + permissions: |
| 49 | + contents: read |
| 50 | + pull-requests: read |
| 51 | + actions: write |
| 52 | + steps: |
| 53 | + - name: Run copyright compliance |
| 54 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-compliance@develop |
| 55 | + with: |
| 56 | + check_type: copyright |
| 57 | + patterns: '*.cs' |
| 58 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 59 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 60 | + |
| 61 | + dataset-compliance: |
| 62 | + runs-on: windows-2025-vs2026 |
| 63 | + timeout-minutes: 20 |
| 64 | + permissions: |
| 65 | + contents: read |
| 66 | + pull-requests: read |
| 67 | + actions: write |
| 68 | + steps: |
| 69 | + - name: Run dataset compliance |
| 70 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-compliance@develop |
| 71 | + with: |
| 72 | + check_type: dataset |
| 73 | + patterns: '**/*[Dd]atasets*/**/*.json **/*[Dd]atasets*.json' |
| 74 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 75 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 76 | + |
| 77 | + documentation-compliance: |
| 78 | + runs-on: windows-2025-vs2026 |
| 79 | + timeout-minutes: 20 |
| 80 | + permissions: |
| 81 | + contents: read |
| 82 | + pull-requests: read |
| 83 | + actions: write |
| 84 | + steps: |
| 85 | + - name: Run documentation compliance |
| 86 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-compliance@develop |
| 87 | + with: |
| 88 | + check_type: documentation |
| 89 | + patterns: '*.cs' |
| 90 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 91 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 92 | + |
| 93 | + project-compliance: |
| 94 | + runs-on: windows-2025-vs2026 |
| 95 | + timeout-minutes: 20 |
| 96 | + permissions: |
| 97 | + contents: read |
| 98 | + pull-requests: read |
| 99 | + actions: write |
| 100 | + steps: |
| 101 | + - name: Run project compliance |
| 102 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-compliance@develop |
| 103 | + with: |
| 104 | + check_type: project |
| 105 | + patterns: 'AssemblyInfo.cs *.csproj' |
| 106 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 107 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 108 | + |
| 109 | + dataset-tests: |
| 110 | + runs-on: windows-2025-vs2026 |
| 111 | + timeout-minutes: 30 |
| 112 | + steps: |
| 113 | + - name: Run dataset tests |
| 114 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-dataset-tests@develop |
| 115 | + with: |
| 116 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 117 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 118 | + |
| 119 | + serialisation: |
| 120 | + runs-on: windows-2025-vs2026 |
| 121 | + timeout-minutes: 90 |
| 122 | + steps: |
| 123 | + - name: Run serialisation |
| 124 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-serialisation@develop |
| 125 | + with: |
| 126 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 127 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
| 128 | + base_ref: ${{ github.base_ref }} |
| 129 | + |
| 130 | + versioning: |
| 131 | + runs-on: windows-2025-vs2026 |
| 132 | + timeout-minutes: 90 |
| 133 | + steps: |
| 134 | + - name: Run versioning |
| 135 | + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-versioning@develop |
| 136 | + with: |
| 137 | + app_id: ${{ secrets.BHOM_APP_ID }} |
| 138 | + private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} |
0 commit comments