From 9bbf918562cd5226c568c9f5fb5b15834494ee39 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 30 Oct 2023 16:01:38 +0200 Subject: [PATCH] build(gha): revert used runner configuration (#91) --- .github/workflows/commands-handler.yml | 10 ++++------ .github/workflows/release.yml | 14 ++++---------- .github/workflows/run-tests.yml | 12 ++++-------- .github/workflows/run-validations.yml | 10 +++------- 4 files changed, 15 insertions(+), 31 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index 79c4e8a8..0b5d4702 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -11,13 +11,11 @@ jobs: process: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest steps: - name: Check referred user id: user-check - env: + env: CLEN_BOT: ${{ secrets.CLEN_BOT }} run: echo "expected-user=${{ startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) }}" >> $GITHUB_OUTPUT - name: Regular comment @@ -27,7 +25,7 @@ jobs: if: steps.user-check.outputs.expected-user == 'true' uses: actions/checkout@v3 with: - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_TOKEN }} - name: Checkout release actions if: steps.user-check.outputs.expected-user == 'true' uses: actions/checkout@v3 @@ -42,4 +40,4 @@ jobs: with: token: ${{ secrets.GH_TOKEN }} listener: ${{ secrets.CLEN_BOT }} - jira-api-key: ${{ secrets.JIRA_API_KEY }} \ No newline at end of file + jira-api-key: ${{ secrets.JIRA_API_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f323c282..2c38d889 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,16 +2,13 @@ name: Automated product release on: pull_request: - branches: [ master ] - types: [ closed ] - + branches: [master] + types: [closed] jobs: check-release: name: Check release required - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true outputs: release: ${{ steps.check.outputs.ready }} @@ -30,9 +27,7 @@ jobs: token: ${{ secrets.GH_TOKEN }} publish: name: Publish package - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest needs: check-release if: needs.check-release.outputs.release == 'true' steps: @@ -60,4 +55,3 @@ jobs: token: ${{ secrets.GH_TOKEN }} jira-api-key: ${{ secrets.JIRA_API_KEY }} last-service: true - diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 622add06..0539ba4c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,9 +13,7 @@ defaults: jobs: tests: name: Integration and Unit tests - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest strategy: max-parallel: 1 fail-fast: true @@ -50,7 +48,7 @@ jobs: ${{ github.workspace }}/vendor key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-composer- + ${{ runner.os }}-composer- - name: Setup PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: @@ -68,10 +66,8 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-tests: name: Tests - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest needs: [tests] steps: - name: Tests summary - run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed" \ No newline at end of file + 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 29a52031..ef4a598a 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -13,9 +13,7 @@ defaults: jobs: pubnub-yml: name: "Validate .pubnub.yml" - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest steps: - name: Checkout project uses: actions/checkout@v3 @@ -35,10 +33,8 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-validations: name: Validations - runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + runs-on: ubuntu-latest needs: [pubnub-yml] steps: - name: Validations summary - run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed" \ No newline at end of file + run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"