|
1 | 1 | # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
2 | 2 | #
|
3 |
| -# Generated on 2025-09-04T12:37:31Z by kres 784fa1f. |
| 3 | +# Generated on 2025-09-15T14:59:48Z by kres d1c95db. |
4 | 4 |
|
5 | 5 | concurrency:
|
6 | 6 | group: ${{ github.head_ref || github.run_id }}
|
|
26 | 26 | packages: write
|
27 | 27 | pull-requests: read
|
28 | 28 | runs-on:
|
29 |
| - - self-hosted |
30 |
| - - generic |
| 29 | + group: generic |
31 | 30 | if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
|
32 | 31 | steps:
|
33 | 32 | - name: gather-system-info
|
|
70 | 69 | - name: base
|
71 | 70 | run: |
|
72 | 71 | make base
|
73 |
| - - name: unit-tests |
74 |
| - run: | |
75 |
| - make unit-tests |
76 |
| - - name: unit-tests-race |
77 |
| - run: | |
78 |
| - make unit-tests-race |
79 |
| - - name: coverage |
80 |
| - uses: codecov/codecov-action@v5 |
81 |
| - with: |
82 |
| - files: _out/coverage-unit-tests.txt |
83 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
84 |
| - timeout-minutes: 3 |
85 | 72 | - name: bldr
|
86 | 73 | run: |
|
87 | 74 | make bldr
|
88 |
| - - name: lint |
89 |
| - run: | |
90 |
| - make lint |
91 | 75 | - name: Login to registry
|
92 | 76 | if: github.event_name != 'pull_request'
|
93 | 77 | uses: docker/login-action@v3
|
@@ -129,3 +113,107 @@ jobs:
|
129 | 113 | files: |-
|
130 | 114 | _out/bldr-*
|
131 | 115 | _out/sha*.txt
|
| 116 | + lint: |
| 117 | + runs-on: |
| 118 | + group: generic |
| 119 | + if: github.event_name == 'pull_request' |
| 120 | + needs: |
| 121 | + - default |
| 122 | + steps: |
| 123 | + - name: gather-system-info |
| 124 | + id: system-info |
| 125 | + uses: kenchan0130/[email protected] |
| 126 | + continue-on-error: true |
| 127 | + - name: print-system-info |
| 128 | + run: | |
| 129 | + MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024)) |
| 130 | +
|
| 131 | + OUTPUTS=( |
| 132 | + "CPU Core: ${{ steps.system-info.outputs.cpu-core }}" |
| 133 | + "CPU Model: ${{ steps.system-info.outputs.cpu-model }}" |
| 134 | + "Hostname: ${{ steps.system-info.outputs.hostname }}" |
| 135 | + "NodeName: ${NODE_NAME}" |
| 136 | + "Kernel release: ${{ steps.system-info.outputs.kernel-release }}" |
| 137 | + "Kernel version: ${{ steps.system-info.outputs.kernel-version }}" |
| 138 | + "Name: ${{ steps.system-info.outputs.name }}" |
| 139 | + "Platform: ${{ steps.system-info.outputs.platform }}" |
| 140 | + "Release: ${{ steps.system-info.outputs.release }}" |
| 141 | + "Total memory: ${MEMORY_GB} GB" |
| 142 | + ) |
| 143 | +
|
| 144 | + for OUTPUT in "${OUTPUTS[@]}";do |
| 145 | + echo "${OUTPUT}" |
| 146 | + done |
| 147 | + continue-on-error: true |
| 148 | + - name: checkout |
| 149 | + uses: actions/checkout@v5 |
| 150 | + - name: Unshallow |
| 151 | + run: | |
| 152 | + git fetch --prune --unshallow |
| 153 | + - name: Set up Docker Buildx |
| 154 | + id: setup-buildx |
| 155 | + uses: docker/setup-buildx-action@v3 |
| 156 | + with: |
| 157 | + driver: remote |
| 158 | + endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234 |
| 159 | + timeout-minutes: 10 |
| 160 | + - name: lint |
| 161 | + run: | |
| 162 | + make lint |
| 163 | + unit-tests: |
| 164 | + runs-on: |
| 165 | + group: generic |
| 166 | + if: github.event_name == 'pull_request' |
| 167 | + needs: |
| 168 | + - default |
| 169 | + steps: |
| 170 | + - name: gather-system-info |
| 171 | + id: system-info |
| 172 | + uses: kenchan0130/[email protected] |
| 173 | + continue-on-error: true |
| 174 | + - name: print-system-info |
| 175 | + run: | |
| 176 | + MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024)) |
| 177 | +
|
| 178 | + OUTPUTS=( |
| 179 | + "CPU Core: ${{ steps.system-info.outputs.cpu-core }}" |
| 180 | + "CPU Model: ${{ steps.system-info.outputs.cpu-model }}" |
| 181 | + "Hostname: ${{ steps.system-info.outputs.hostname }}" |
| 182 | + "NodeName: ${NODE_NAME}" |
| 183 | + "Kernel release: ${{ steps.system-info.outputs.kernel-release }}" |
| 184 | + "Kernel version: ${{ steps.system-info.outputs.kernel-version }}" |
| 185 | + "Name: ${{ steps.system-info.outputs.name }}" |
| 186 | + "Platform: ${{ steps.system-info.outputs.platform }}" |
| 187 | + "Release: ${{ steps.system-info.outputs.release }}" |
| 188 | + "Total memory: ${MEMORY_GB} GB" |
| 189 | + ) |
| 190 | +
|
| 191 | + for OUTPUT in "${OUTPUTS[@]}";do |
| 192 | + echo "${OUTPUT}" |
| 193 | + done |
| 194 | + continue-on-error: true |
| 195 | + - name: checkout |
| 196 | + uses: actions/checkout@v5 |
| 197 | + - name: Unshallow |
| 198 | + run: | |
| 199 | + git fetch --prune --unshallow |
| 200 | + - name: Set up Docker Buildx |
| 201 | + id: setup-buildx |
| 202 | + uses: docker/setup-buildx-action@v3 |
| 203 | + with: |
| 204 | + driver: remote |
| 205 | + endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234 |
| 206 | + timeout-minutes: 10 |
| 207 | + - name: unit-tests |
| 208 | + run: | |
| 209 | + make unit-tests |
| 210 | + - name: unit-tests-race |
| 211 | + run: | |
| 212 | + make unit-tests-race |
| 213 | + - name: coverage |
| 214 | + uses: codecov/codecov-action@v5 |
| 215 | + with: |
| 216 | + files: _out/coverage-unit-tests.txt |
| 217 | + flags: unit-tests |
| 218 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 219 | + timeout-minutes: 3 |
0 commit comments