From de6c5136b579c2ed037de5b1c32d1df5684dec4b Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Tue, 10 Dec 2024 10:33:39 +0200 Subject: [PATCH] build(workflow): update runner group --- .github/workflows/commands-handler.yml | 5 +++-- .github/workflows/release.yml | 10 ++++++---- .github/workflows/run-tests.yml | 11 +++++++---- .github/workflows/run-validations.yml | 20 +++++++++++++------- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index 0b5d4702..3f8bce55 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -2,7 +2,7 @@ name: Commands processor on: issue_comment: - types: [created] + types: [ created ] defaults: run: shell: bash @@ -11,7 +11,8 @@ jobs: process: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - name: Check referred user id: user-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5afb2eed..edfda40f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,13 +2,14 @@ name: Automated product release on: pull_request: - branches: [master] - types: [closed] + branches: [ master ] + types: [ closed ] jobs: check-release: name: Check release required - runs-on: ubuntu-latest + runs-on: + group: organization/Default if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true outputs: release: ${{ steps.check.outputs.ready }} @@ -27,7 +28,8 @@ jobs: token: ${{ secrets.GH_TOKEN }} publish: name: Publish package - runs-on: ubuntu-latest + runs-on: + group: organization/Default 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 b8ef1864..c9f17242 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,8 @@ env: jobs: tests: name: Unit tests - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - name: Checkout repository uses: actions/checkout@v3 @@ -34,7 +35,8 @@ jobs: # uses: ./.github/.release/actions/actions/utils/fast-jobs-failure acceptance-tests: name: Acceptance tests - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - name: Checkout project uses: actions/checkout@v3 @@ -63,8 +65,9 @@ jobs: retention-days: 7 all-tests: name: Tests - runs-on: ubuntu-latest - needs: [tests, acceptance-tests] + runs-on: + group: organization/Default + needs: [ tests, acceptance-tests ] steps: - name: Tests summary run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed" diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 353ebaf8..44c2bff9 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -19,7 +19,8 @@ env: jobs: # pubnub-yml: # name: "Validate .pubnub.yml" - # runs-on: ubuntu-latest + # runs-on: + # group: organization/Default # steps: # - name: Checkout project # uses: actions/checkout@v3 @@ -40,7 +41,8 @@ jobs: linters: name: Launch all cargo linters to check condition of the code - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - uses: actions/checkout@v3 @@ -68,7 +70,8 @@ jobs: cargo-deny: name: Check Cargo crate dependencies - runs-on: ubuntu-latest + runs-on: + group: organization/Default strategy: matrix: checks: @@ -84,7 +87,8 @@ jobs: wasm-target: name: Check if Web Assembly target compiles as expected - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - uses: actions/checkout@v3 @@ -102,7 +106,8 @@ jobs: no_std-target: name: Check if `no_std` target compiles as expected - runs-on: ubuntu-latest + runs-on: + group: organization/Default steps: - uses: actions/checkout@v3 @@ -126,8 +131,9 @@ jobs: all-validations: name: Validations - runs-on: ubuntu-latest - needs: [linters, cargo-deny, wasm-target, no_std-target] + runs-on: + group: organization/Default + needs: [ linters, cargo-deny, wasm-target, no_std-target ] steps: - name: Validations summary run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"