Skip to content

Commit

Permalink
Use large GitHub runner (#98)
Browse files Browse the repository at this point in the history
* build(runner): change runner groups

---------

Co-authored-by: Sebastian Molenda <[email protected]>
  • Loading branch information
parfeon and seba-aln authored May 29, 2024
1 parent b37915b commit cd1f426
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: Default
steps:
- name: Check referred user
id: user-check
Expand All @@ -23,12 +24,12 @@ jobs:
run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m"
- name: Checkout repository
if: steps.user-check.outputs.expected-user == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Checkout release actions
if: steps.user-check.outputs.expected-user == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on:
jobs:
check-release:
name: Check release required
runs-on: ubuntu-latest
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
runs-on:
group: Default
outputs:
release: ${{ steps.check.outputs.ready }}
steps:
- name: Checkout actions
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand All @@ -27,17 +28,18 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
publish:
name: Publish package
runs-on: ubuntu-latest
needs: check-release
if: needs.check-release.outputs.release == 'true'
runs-on:
group: Default
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# This should be the same as the one specified for on.pull_request.branches
ref: master
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,26 @@ defaults:
jobs:
tests:
name: Integration and Unit tests
runs-on: ubuntu-latest
runs-on:
group: Default
strategy:
max-parallel: 1
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
env:
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
SUBSCRIBE_KEY: ${{ secrets.SUBSCRIBE_KEY }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
PUBLISH_PAM_KEY: ${{ secrets.PUBLISH_PAM_KEY }}
SUBSCRIBE_PAM_KEY: ${{ secrets.SUBSCRIBE_PAM_KEY }}
SECRET_PAM_KEY: ${{ secrets.SECRET_PAM_KEY }}
PUBLISH_KEY: ${{ secrets.SDK_PUB_KEY }}
SUBSCRIBE_KEY: ${{ secrets.SDK_SUB_KEY }}
SECRET_KEY: ${{ secrets.SDK_SEC_KEY }}
PUBLISH_PAM_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
SUBSCRIBE_PAM_KEY: ${{ secrets.SDK_PAM_SUB_KEY }}
SECRET_PAM_KEY: ${{ secrets.SDK_PAM_SEC_KEY }}
UUID_MOCK: "test-user"
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand All @@ -41,7 +42,7 @@ jobs:
id: composer-cache-dir
run: echo "dir=$(composer config cache-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
"${{ steps.composer-cache-dir.outputs.dir }}"
Expand All @@ -66,8 +67,9 @@ jobs:
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
all-tests:
name: Tests
runs-on: ubuntu-latest
needs: [tests]
runs-on:
group: Default
steps:
- name: Tests summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
10 changes: 6 additions & 4 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ defaults:
jobs:
pubnub-yml:
name: "Validate .pubnub.yml"
runs-on: ubuntu-latest
runs-on:
group: Default
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout validator action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand All @@ -33,8 +34,9 @@ jobs:
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
all-validations:
name: Validations
runs-on: ubuntu-latest
needs: [pubnub-yml]
runs-on:
group: Default
steps:
- name: Validations summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"

0 comments on commit cd1f426

Please sign in to comment.