Skip to content

Commit eb3234d

Browse files
parfeonpn-mmeierjguz-pubnub
authored
Use large GitHub runner (#174)
build(runner): use hosted runner build(runner): update runner group fix(unit-tests): fixing unit test for EmitMessagesEffect build(workflow): env file for macOS Replacing `.userInteractive` with `.default` in AtomicTests.swift --------- Signed-off-by: Serhii Mamontov <[email protected]> Co-authored-by: Matthew Meier <[email protected]> Co-authored-by: jguz-pubnub <[email protected]>
1 parent 0586d55 commit eb3234d

15 files changed

+238
-204
lines changed

Diff for: .github/workflows/commands-handler.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@ jobs:
1111
process:
1212
name: Process command
1313
if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
14-
runs-on: ubuntu-latest
14+
runs-on:
15+
group: Default
1516
steps:
1617
- name: Check referred user
1718
id: user-check
18-
env:
19+
env:
1920
CLEN_BOT: ${{ secrets.CLEN_BOT }}
2021
run: echo "expected-user=${{ startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) }}" >> $GITHUB_OUTPUT
2122
- name: Regular comment
2223
if: steps.user-check.outputs.expected-user != 'true'
2324
run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m"
2425
- name: Checkout repository
2526
if: steps.user-check.outputs.expected-user == 'true'
26-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2728
with:
28-
token: ${{ secrets.GH_TOKEN }}
29+
token: ${{ secrets.GH_TOKEN }}
2930
- name: Checkout release actions
3031
if: steps.user-check.outputs.expected-user == 'true'
31-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3233
with:
3334
repository: pubnub/client-engineering-deployment-tools
3435
ref: v1
@@ -40,4 +41,4 @@ jobs:
4041
with:
4142
token: ${{ secrets.GH_TOKEN }}
4243
listener: ${{ secrets.CLEN_BOT }}
43-
jira-api-key: ${{ secrets.JIRA_API_KEY }}
44+
jira-api-key: ${{ secrets.JIRA_API_KEY }}

Diff for: .github/workflows/release.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ name: Automated product release
22

33
on:
44
pull_request:
5-
branches: [ master ]
6-
types: [ closed ]
7-
5+
branches: [master]
6+
types: [closed]
87

98
jobs:
109
check-release:
1110
name: Check release required
12-
runs-on: ubuntu-latest
1311
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
12+
runs-on:
13+
group: Default
1414
outputs:
1515
release: ${{ steps.check.outputs.ready }}
1616
steps:
1717
- name: Checkout actions
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
repository: pubnub/client-engineering-deployment-tools
2121
ref: v1
@@ -28,18 +28,19 @@ jobs:
2828
token: ${{ secrets.GH_TOKEN }}
2929
publish:
3030
name: Publish package
31-
runs-on: macos-12
3231
needs: check-release
3332
if: needs.check-release.outputs.release == 'true'
33+
runs-on:
34+
group: macos-gh
3435
steps:
3536
- name: Checkout repository
36-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3738
with:
3839
# This should be the same as the one specified for on.pull_request.branches
3940
ref: master
4041
token: ${{ secrets.GH_TOKEN }}
4142
- name: Checkout actions
42-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4344
with:
4445
repository: pubnub/client-engineering-deployment-tools
4546
ref: v1

Diff for: .github/workflows/run-tests.yml

+41-19
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,54 @@ defaults:
1010
run:
1111
shell: bash
1212

13+
env:
14+
LANG: en_US.UTF-8
15+
LANGUAGE: en_US.UTF-8
16+
LC_ALL: en_US.UTF-8
17+
LC_CTYPE: en_US.UTF-8
18+
1319
jobs:
1420
tests:
1521
name: Integration and Unit tests
16-
runs-on: macos-12
22+
runs-on:
23+
group: macos-gh
1724
strategy:
1825
matrix:
1926
environment: [iOS, tvOS, macOS]
27+
timeout-minutes: 5
2028
steps:
2129
- name: Checkout repository
22-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
2331
with:
2432
token: ${{ secrets.GH_TOKEN }}
25-
- name: Setup Ruby 2.6.6
33+
- name: Checkout actions
34+
uses: actions/checkout@v4
35+
with:
36+
repository: pubnub/client-engineering-deployment-tools
37+
ref: v1
38+
token: ${{ secrets.GH_TOKEN }}
39+
path: .github/.release/actions
40+
- name: Setup Ruby 3.2.2
2641
uses: ruby/setup-ruby@v1
2742
with:
28-
ruby-version: 2.6.6
43+
ruby-version: 3.2.2
2944
bundler-cache: true
3045
- name: Cache installed Pods
31-
uses: actions/cache@v3
46+
uses: actions/cache@v4
3247
with:
3348
path: Pods
3449
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
3550
restore-keys: |
36-
${{ runner.os }}-pods-
51+
${{ runner.os }}-pods-
3752
- name: Cache Swift Package Manager
38-
uses: actions/cache@v3
53+
uses: actions/cache@v4
3954
with:
4055
path: |
4156
.build
4257
~/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
4358
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
4459
restore-keys: |
45-
${{ runner.os }}-spm-
60+
${{ runner.os }}-spm-
4661
- name: Pre-load simulators list
4762
if: ${{ matrix.environment != 'macOS' }}
4863
run: xcrun simctl list -j
@@ -53,33 +68,39 @@ jobs:
5368
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
5469
acceptance-tests:
5570
name: Acceptance tests
56-
runs-on: macos-12
71+
runs-on:
72+
group: macos-gh
73+
timeout-minutes: 10
5774
steps:
5875
- name: Checkout repository
59-
uses: actions/checkout@v3
60-
- name: Setup Ruby 2.6.6
76+
uses: actions/checkout@v4
77+
- name: Setup Ruby 3.2.2
6178
uses: ruby/setup-ruby@v1
6279
with:
63-
ruby-version: 2.6.6
80+
ruby-version: 3.2.2
6481
bundler-cache: true
82+
- name: Setup Node.js 20.x
83+
uses: actions/setup-node@v4
84+
with:
85+
node-version: "20.x"
6586
- name: Cache installed Pods
66-
uses: actions/cache@v3
87+
uses: actions/cache@v4
6788
with:
6889
path: Pods
6990
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
7091
restore-keys: |
71-
${{ runner.os }}-pods-
92+
${{ runner.os }}-pods-
7293
- name: Cache Swift Package Manager
73-
uses: actions/cache@v3
94+
uses: actions/cache@v4
7495
with:
7596
path: |
7697
.build
7798
~/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
7899
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
79100
restore-keys: |
80-
${{ runner.os }}-spm-
101+
${{ runner.os }}-spm-
81102
- name: Checkout mock-server action
82-
uses: actions/checkout@v3
103+
uses: actions/checkout@v4
83104
with:
84105
repository: pubnub/client-engineering-deployment-tools
85106
ref: v1
@@ -103,15 +124,16 @@ jobs:
103124
bundle exec fastlane contract_test --env contract-beta && FASTLANE_EXITCODE="${PIPESTATUS[0]}"
104125
mv Results/CucumberishTestResults-PubNubContractTestsBeta.json Results/beta.json
105126
- name: Upload acceptance tests reports
106-
uses: actions/upload-artifact@v3
127+
uses: actions/upload-artifact@v4
107128
with:
108129
name: acceptance-test-reports
109130
path: Results/*.json
110131
retention-days: 7
111132
all-tests:
112133
name: Tests
113-
runs-on: ubuntu-latest
114134
needs: [tests, acceptance-tests]
135+
runs-on:
136+
group: Default
115137
steps:
116138
- name: Tests summary
117139
run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"

Diff for: .github/workflows/run-validations.yml

+25-16
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ defaults:
1010
run:
1111
shell: bash
1212

13+
env:
14+
LANG: en_US.UTF-8
15+
LANGUAGE: en_US.UTF-8
16+
LC_ALL: en_US.UTF-8
17+
1318
jobs:
1419
pubnub-yml:
1520
name: "Validate .pubnub.yml"
16-
runs-on: ubuntu-latest
21+
runs-on:
22+
group: Default
1723
steps:
1824
- name: Checkout project
19-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2026
- name: Checkout validator action
21-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2228
with:
2329
repository: pubnub/client-engineering-deployment-tools
2430
ref: v1
@@ -33,29 +39,30 @@ jobs:
3339
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
3440
package-managers-validation:
3541
name: Validate package managers
36-
runs-on: macos-12
42+
runs-on:
43+
group: macos-gh
3744
strategy:
3845
matrix:
3946
managers: [CocoaPods, Swift Package Manager]
4047
steps:
4148
- name: Checkout repository
42-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
4350
with:
4451
token: ${{ secrets.GH_TOKEN }}
4552
- name: Checkout actions
46-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
4754
with:
4855
repository: pubnub/client-engineering-deployment-tools
4956
ref: v1
5057
token: ${{ secrets.GH_TOKEN }}
5158
path: .github/.release/actions
52-
- name: Setup Ruby 2.6.6
59+
- name: Setup Ruby 3.2.2
5360
uses: ruby/setup-ruby@v1
5461
with:
55-
ruby-version: 2.6.6
62+
ruby-version: 3.2.2
5663
bundler-cache: true
5764
- name: Cache Swift Package Manager
58-
uses: actions/cache@v3
65+
uses: actions/cache@v4
5966
with:
6067
path: |
6168
.build
@@ -70,26 +77,27 @@ jobs:
7077
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
7178
demo-app-validation:
7279
name: Validate demo application
73-
runs-on: macos-12
80+
runs-on:
81+
group: macos-gh
7482
steps:
7583
- name: Checkout repository
76-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
7785
with:
7886
token: ${{ secrets.GH_TOKEN }}
7987
- name: Checkout actions
80-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
8189
with:
8290
repository: pubnub/client-engineering-deployment-tools
8391
ref: v1
8492
token: ${{ secrets.GH_TOKEN }}
8593
path: .github/.release/actions
86-
- name: Setup Ruby 2.6.6
94+
- name: Setup Ruby 3.2.2
8795
uses: ruby/setup-ruby@v1
8896
with:
89-
ruby-version: 2.6.6
97+
ruby-version: 3.2.2
9098
bundler-cache: true
9199
- name: Cache Swift Package Manager
92-
uses: actions/cache@v3
100+
uses: actions/cache@v4
93101
with:
94102
path: |
95103
.build
@@ -104,8 +112,9 @@ jobs:
104112
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
105113
all-validations:
106114
name: Validations
107-
runs-on: ubuntu-latest
108115
needs: [pubnub-yml, package-managers-validation, demo-app-validation]
116+
runs-on:
117+
group: Default
109118
steps:
110119
- name: Validations summary
111120
run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"

Diff for: Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "cocoapods", :github => "cocoapods/cocoapods", :branch => "master"
3+
gem "cocoapods"
44

55
gem "fastlane"
66
gem "slather"

0 commit comments

Comments
 (0)