From 83e84757771aa045e672415d885a83933be134c4 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:39:31 +0100 Subject: [PATCH] Split workflows --- .../{pull-request.yml => archives.yml} | 37 +------------------ .github/workflows/documentation.yml | 17 +++++++++ .github/workflows/nightlies.yml | 4 +- .github/workflows/quality.yml | 17 +++++++++ .github/workflows/releases.yml | 4 +- .github/workflows/tests.yml | 20 ++++++++++ 6 files changed, 60 insertions(+), 39 deletions(-) rename .github/workflows/{pull-request.yml => archives.yml} (57%) create mode 100644 .github/workflows/documentation.yml create mode 100644 .github/workflows/quality.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/archives.yml similarity index 57% rename from .github/workflows/pull-request.yml rename to .github/workflows/archives.yml index 0144ef67..85162f3e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/archives.yml @@ -1,46 +1,13 @@ --- -name: Pull Request +name: ๐Ÿ“ฆ Archives on: # yamllint disable-line rule:truthy merge_group: pull_request: jobs: - check-quality: - name: ๐Ÿ”Ž Check quality - runs-on: macos-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run the quality check - run: make check-quality - - build-documentation: - name: ๐Ÿ“š Build documentation - runs-on: macos-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Build the documentation - run: make doc - - tests: - name: ๐Ÿงช Tests - runs-on: macos-latest - strategy: - matrix: - platform: [ios, tvos] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run tests - run: make test-${{ matrix.platform }} - archive-demos: - name: ๐Ÿ“ฆ Archives + name: Archives runs-on: macos-latest strategy: matrix: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..e12b3d25 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,17 @@ +--- +name: ๐Ÿ“š Documentation + +on: # yamllint disable-line rule:truthy + merge_group: + pull_request: + +jobs: + build-documentation: + name: Build documentation + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build the documentation + run: make doc diff --git a/.github/workflows/nightlies.yml b/.github/workflows/nightlies.yml index 5be3d6d5..7ebf310c 100644 --- a/.github/workflows/nightlies.yml +++ b/.github/workflows/nightlies.yml @@ -1,5 +1,5 @@ --- -name: Nightlies +name: ๐ŸŒ™ Nightlies on: # yamllint disable-line rule:truthy push: @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy jobs: deliver-demo-nightlies: - name: ๐ŸŒ™ Nightlies + name: Nightlies runs-on: macos-latest strategy: matrix: diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 00000000..14231973 --- /dev/null +++ b/.github/workflows/quality.yml @@ -0,0 +1,17 @@ +--- +name: ๐Ÿ”Ž Quality + +on: # yamllint disable-line rule:truthy + merge_group: + pull_request: + +jobs: + check-quality: + name: Check quality + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run the quality check + run: make check-quality diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index c99d6942..72de8772 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -1,5 +1,5 @@ --- -name: Releases +name: ๐Ÿš€ Releases on: # yamllint disable-line rule:truthy push: @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy jobs: deliver-demo-releases: - name: ๐Ÿš€ Releases + name: Releases runs-on: macos-latest strategy: matrix: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..bee6b569 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +--- +name: ๐Ÿงช Tests + +on: # yamllint disable-line rule:truthy + merge_group: + pull_request: + +jobs: + tests: + name: Tests + runs-on: macos-latest + strategy: + matrix: + platform: [ios, tvos] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run tests + run: make test-${{ matrix.platform }}