From 925a0e7fb44cbf28c544a5a27ec0416913694137 Mon Sep 17 00:00:00 2001 From: shBLOCK <50770712+shBLOCK@users.noreply.github.com> Date: Tue, 7 May 2024 22:53:16 +0800 Subject: [PATCH] Debug tests.yml --- .github/workflows/codegen.yml | 17 +---------------- .github/workflows/tests.yml | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index 57e715b..4e68da9 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -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: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a06160..74e3fe2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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