From 8984404729a4ca9133100cf9153d22cbcf89d542 Mon Sep 17 00:00:00 2001 From: Dejan Pejchev Date: Wed, 28 Jun 2023 14:49:01 +0200 Subject: [PATCH] add aggregate workflow for CI --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/lint.yml | 5 +---- .github/workflows/test.yml | 4 +--- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..348b46afbb3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + pull_request: + schedule: + # Run daily at 01:34, so we get notified if CI is broken before a pull request + # is submitted. + - cron: "34 1 * * *" + +permissions: + contents: read + pull-requests: read + checks: write + +jobs: + lint: + uses: ./.github/workflows/lint.yml + test: + uses: ./.github/workflows/test.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b8282914fd1..cff9a3e0c72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,10 +1,7 @@ name: "Lint" on: - push: - branches: - - master - pull_request: + workflow_call: permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ee18a7bc55..3c7b0c920fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,7 @@ name: Code Build and Tests on: - push: - branches: [master] - pull_request: + workflow_call: permissions: contents: read