From fbe1317a800d7722f4e8b668c073218263d0ab17 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Fri, 23 Jun 2023 00:14:30 +0100 Subject: [PATCH] Introduce branch dependency execution We want the most important things to fail first and prevent the other ones from executing e.g. if your dist/ is not updated, there's no point seeing the tests fail --- .github/workflows/hexpm-mirrors.yml | 10 ++++------ .github/workflows/ubuntu.yml | 9 ++++----- .github/workflows/windows.yml | 9 ++++----- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/hexpm-mirrors.yml b/.github/workflows/hexpm-mirrors.yml index 2bc54933..7b44f8ee 100644 --- a/.github/workflows/hexpm-mirrors.yml +++ b/.github/workflows/hexpm-mirrors.yml @@ -2,12 +2,10 @@ name: hexpm-mirrors on: - push: - branches: - - main - pull_request: - branches: - - main + workflow_run: + workflows: ["action"] + types: + - completed jobs: test-failing-first-mirror: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index b0b0638b..7210429c 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -2,11 +2,10 @@ name: ubuntu on: - push: - branches: - - main - pull_request: - types: [opened, synchronize] + workflow_run: + workflows: ["action"] + types: + - completed jobs: integration_test: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 350c7703..17aa7355 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,11 +2,10 @@ name: windows on: - push: - branches: - - main - pull_request: - types: [opened, synchronize] + workflow_run: + workflows: ["action"] + types: + - completed jobs: integration_test: