|
51 | 51 | name: Build tests
|
52 | 52 | uses: ./.github/workflows/build_tests.yml
|
53 | 53 | needs: gen-matrix
|
54 |
| - if: github.event.action != 'closed' |
| 54 | + #if: github.event.action != 'closed' |
| 55 | + if: false |
55 | 56 | strategy:
|
56 | 57 | matrix:
|
57 | 58 | type: ${{ fromJson(needs.gen-matrix.outputs.build-types) }}
|
|
64 | 65 | name: Run tests on hardware
|
65 | 66 | uses: ./.github/workflows/hw.yml
|
66 | 67 | needs: [gen-matrix, call-build-tests]
|
67 |
| - if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'hil_test') }} |
| 68 | + #if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'hil_test') }} |
| 69 | + if: false |
68 | 70 | strategy:
|
69 | 71 | fail-fast: false
|
70 | 72 | matrix:
|
|
78 | 80 | name: Run tests on Wokwi
|
79 | 81 | uses: ./.github/workflows/wokwi.yml
|
80 | 82 | needs: [gen-matrix, call-build-tests]
|
81 |
| - if: github.event.action != 'closed' |
| 83 | + #if: github.event.action != 'closed' |
| 84 | + if: false |
82 | 85 | strategy:
|
83 | 86 | fail-fast: false
|
84 | 87 | matrix:
|
@@ -137,41 +140,22 @@ jobs:
|
137 | 140 | direction: 'asc',
|
138 | 141 | key: 'tests-'
|
139 | 142 | }).then(caches => {
|
140 |
| - console.log(caches); |
141 |
| - }); |
142 |
| -
|
143 |
| - /* |
144 |
| - do { |
145 |
| - // Fetch all cache entries for the repository |
146 |
| - caches = await github.paginate(github.rest.actions.getActionsCacheList, { |
147 |
| - owner: context.repo.owner, |
148 |
| - repo: context.repo.repo, |
149 |
| - per_page: 100, |
150 |
| - sort: 'created_at', |
151 |
| - direction: 'asc', |
152 |
| - key: 'tests-' |
153 |
| - }); |
154 |
| - } while(caches?.data?.actions_caches?.length > 0); |
155 |
| -
|
156 |
| - console.log(caches.data.actions_caches.map(cache => cache.key)); |
157 |
| -
|
158 |
| - if (caches.data) { |
159 |
| - // Delete matching caches |
160 |
| - for (const cache of caches.data.actions_caches) { |
| 143 | + if (caches) { |
| 144 | + for (const cache of caches) { |
161 | 145 | if (cache.key.endsWith(sha) || (!pr && !cache.key.startsWith("tests-bin-"))) {
|
162 | 146 | console.log(`Skipping cache with key: ${cache.key}`);
|
163 | 147 | continue;
|
164 | 148 | }
|
165 | 149 |
|
166 | 150 | console.log(`Deleting cache with key: ${cache.key}`);
|
167 | 151 |
|
168 |
| - await github.rest.actions.deleteActionsCacheById({ |
| 152 | + /* |
| 153 | + github.rest.actions.deleteActionsCacheById({ |
169 | 154 | owner: context.repo.owner,
|
170 | 155 | repo: context.repo.repo,
|
171 | 156 | cache_id: cache.id
|
172 | 157 | });
|
| 158 | + */ |
173 | 159 | }
|
174 |
| - await sleep(30000); // Sleep for 30 seconds to avoid rate limiting |
175 | 160 | }
|
176 |
| - } while(caches?.data?.actions_caches?.length > 0); |
177 |
| - */ |
| 161 | + }); |
0 commit comments