Skip to content

Commit 6d5f17c

Browse files
committed
Remove tmp and get to final form of this iteration
1 parent bc0bd88 commit 6d5f17c

File tree

3 files changed

+2
-58
lines changed

3 files changed

+2
-58
lines changed

.github/workflows/ci.yml

-49
Original file line numberDiff line numberDiff line change
@@ -148,55 +148,6 @@ jobs:
148148
statuses: write
149149
name : Test ${{ matrix.testSet.name }} on ${{ matrix.testSet.host }}
150150

151-
tmp_tests:
152-
if : ${{ contains( fromJson('["tmp-tests","all-tests"]'), inputs.test ) || inputs.event_name == 'push' }}
153-
name: Temp test
154-
runs-on: ubuntu-latest
155-
permissions:
156-
statuses: write
157-
steps:
158-
159-
# Don't use gh checks as they are woefully underdeveloped as a feature leading
160-
# to confusing UI and misplaced metrics
161-
# https://github.com/orgs/community/discussions/24616
162-
- name: Set pending status
163-
id: check_run_start
164-
uses: actions/github-script@v7
165-
with:
166-
github-token: ${{ secrets.GITHUB_TOKEN }}
167-
script: |
168-
github.rest.repos.createCommitStatus({
169-
owner: context.repo.owner,
170-
repo: context.repo.repo,
171-
sha: context.sha,
172-
target_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
173-
description: 'dummy',
174-
context: '${{ inputs.test }}',
175-
state: 'pending'
176-
})
177-
178-
- name: dummy
179-
id: dummy
180-
run: |
181-
echo "Hello World!"
182-
sleep 5
183-
184-
- name: Set completed status
185-
uses: actions/github-script@v7
186-
with:
187-
github-token: ${{ secrets.GITHUB_TOKEN }}
188-
script: |
189-
github.rest.repos.createCommitStatus({
190-
owner: context.repo.owner,
191-
repo: context.repo.repo,
192-
sha: context.sha,
193-
target_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
194-
description: 'dummy',
195-
context: '${{ inputs.test }}',
196-
state: '${{ contains( fromJson('["success","failure","error"]'),steps.dummy.outcome ) && steps.dummy.outcome || 'error' }}'
197-
})
198-
199-
200151

201152
# # In the event that 'all-tests' is used, this final job will be the one to remove
202153
# # the label from the PR

.github/workflows/entry_point.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ on:
1010
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull-request-events-for-forked-repositories-2
1111
pull_request:
1212
types: [ labeled ]
13-
14-
# https://docs.github.com/en/actions/sharing-automations/reusing-workflows#supported-keywords-for-jobs-that-call-a-reusable-workflow
15-
# Also https://stackoverflow.com/a/74959635
16-
# TL;DR - For public repositories the safest approach will be to use the default read permissions, but at the cost
17-
# of not being able to modify the labels. That will need to be a separate [trusted] workflow that runs from the base repo
18-
# permissions :
19-
# contents : read
20-
# pull-requests : write
2113

2214
# Write our tests out this way for easier legibility
2315
# testsSet :
@@ -30,7 +22,7 @@ on:
3022
# https://stackoverflow.com/a/68940067
3123
jobs:
3224
queue_tests:
33-
if : ${{ contains( fromJson('["compile-tests","all-tests","tmp-tests"]'), github.event.label.name ) || github.event_name == 'push' }}
25+
if : ${{ contains( fromJson('["compile-tests","all-tests"]'), github.event.label.name ) || github.event_name == 'push' }}
3426
name: Queue Test (${{ github.event_name == 'push' && github.ref_name || github.event.label.name }})
3527
runs-on: ubuntu-latest
3628
permissions:

.github/workflows/test_workflow.yml

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ jobs:
169169
include-hidden-files: true
170170

171171
- name: Set completed status
172+
if: ${{ always() }}
172173
uses: actions/github-script@v7
173174
with:
174175
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)