Skip to content

Commit

Permalink
Debug tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shBLOCK committed May 7, 2024
1 parent fb74a54 commit 925a0e7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
name: Codegen

on:
push:
branches:
- master
paths:
- "codegen/**"
- "src/**"
- "tests/**"
- ".github/workflows/codegen.yml"
- ".github/workflows/tests.yml"
- "*"
- "!**/*.md"
- "!**/*.txt"
- "!**/.gitignore"
pull_request:
branches:
- master
workflow_call:
workflow_dispatch:

jobs:
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
name: Tests

on:
workflow_run:
workflows: [Codegen]
types: [completed]
push:
branches:
- master
paths:
- "codegen/**"
- "src/**"
- "tests/**"
- ".github/workflows/codegen.yml"
- ".github/workflows/tests.yml"
- "*"
- "!**/*.md"
- "!**/*.txt"
- "!**/.gitignore"
pull_request:
branches:
- master
workflow_dispatch:

jobs:
codegen:
uses: ./.github/workflows/codegen.yml

tests:
needs: [codegen]
runs-on: ${{ matrix.platform }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
Expand Down Expand Up @@ -35,6 +52,7 @@ jobs:
workflow_id: "codegen.yml"
}
)) {
console.log("runs: "+JSON.stringify(runs.data))
for (const run of runs.data.workflow_runs) {
latest = (latest != null && run.run_number > latest.run_number)
? run : latest
Expand Down

0 comments on commit 925a0e7

Please sign in to comment.