build: remove unused files (#1675)

This commit is contained in:
Himself65
2023-03-23 13:55:52 -05:00
committed by GitHub
parent dd3f9709c2
commit 3eba199aca
2 changed files with 0 additions and 29 deletions

View File

@@ -1,29 +0,0 @@
name: Merge Check
on:
merge_group:
types: [checks_requested]
jobs:
check_commit_run:
name: Check commit run
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
const assert = (condition, message) => {
if (!condition) {
throw new Error(message)
}
}
const { data } = await github.rest.checks.listSuitesForRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: context.payload.merge_group.head_ref,
})
const names = data.check_suites.map((run) => run.name)
assert(names.includes('E2E Test (1/4)'), 'E2E Test (1/4) not found')
assert(names.includes('E2E Test (2/4)'), 'E2E Test (2/4) not found')
assert(names.includes('E2E Test (3/4)'), 'E2E Test (3/4) not found')
assert(names.includes('E2E Test (4/4)'), 'E2E Test (4/4) not found')
assert(names.includes('Unit Test'), 'Unit Test not found')