Skip to content

Commit

Permalink
build: add custom GHA large runner (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon authored Jul 10, 2023
1 parent b2c3a36 commit ccc3395
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ defaults:
jobs:
tests:
name: Integration and Unit tests
runs-on: ubuntu-latest
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
env:
SUB_KEY: ${{ secrets.SUB_KEY }}
PUB_KEY: ${{ secrets.PUB_KEY }}
Expand Down Expand Up @@ -41,7 +43,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
env:
pubKey: somePubKey
subKey: someSubKey
Expand Down Expand Up @@ -93,7 +97,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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ defaults:
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
Expand All @@ -33,7 +35,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
Expand Down

0 comments on commit ccc3395

Please sign in to comment.