From b791e3067e1f2a6d11e05f8e310ea179115dfd73 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Fri, 7 Jul 2023 22:42:50 +0300 Subject: [PATCH] build: add custom GHA large runner --- .github/workflows/commands-handler.yml | 4 +++- .github/workflows/release.yml | 8 ++++++-- .github/workflows/run-tests.yml | 12 +++++++++--- .github/workflows/run-validations.yml | 8 ++++++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index 4e34b04c5..79c4e8a8e 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -11,7 +11,9 @@ jobs: process: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m steps: - name: Check referred user id: user-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5784b459d..42b1ffbef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,9 @@ on: jobs: check-release: name: Check release required - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m if: ${{ github.event.pull_request.merged && endsWith(github.repository, '-private') != true }} outputs: release: ${{ steps.check.outputs.ready }} @@ -28,7 +30,9 @@ jobs: token: ${{ secrets.GH_TOKEN }} publish: name: Publish package - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: check-release if: ${{ needs.check-release.outputs.release == 'true' }} steps: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5d52b8f5c..027d43635 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,9 @@ defaults: jobs: tests: name: Integration and Unit tests - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m strategy: fail-fast: true matrix: @@ -43,7 +45,9 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure acceptance-tests: name: Acceptance tests - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m steps: - name: Checkout project uses: actions/checkout@v3 @@ -88,7 +92,9 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-tests: name: Tests - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: [tests, acceptance-tests] steps: - name: Tests summary diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 6a2171fbd..abc5db0b1 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -5,7 +5,9 @@ on: [push] jobs: pubnub-yml: name: "Validate .pubnub.yml" - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m steps: - name: Checkout project uses: actions/checkout@v3 @@ -25,7 +27,9 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-validations: name: Validations - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: [pubnub-yml] steps: - name: Validations summary