Skip to content

Commit e6bec98

Browse files
Update CI-CD workflows
1 parent 163b3da commit e6bec98

File tree

9 files changed

+1016
-687
lines changed

9 files changed

+1016
-687
lines changed

.github/workflows/ci-cd.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ permissions:
1919
jobs:
2020
build:
2121
name: Build
22-
# @TODO rollback to ubuntu-latest eventually. ATM, `npm run test-browser` fails when using ubuntu-latest (ubuntu-22.04) with "ERROR [launcher]: Cannot start ChromeHeadless"
23-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2423
steps:
2524
- name: Checkout code
2625
uses: actions/checkout@v4
@@ -34,7 +33,7 @@ jobs:
3433
run: redis-cli ping
3534

3635
- name: Setup Node.js
37-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3837
with:
3938
node-version: 'lts/*'
4039
cache: 'npm'
@@ -59,15 +58,15 @@ jobs:
5958

6059
- name: Store assets
6160
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master') }}
62-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
6362
with:
6463
name: assets
6564
path: umd/
6665
retention-days: 1
6766

6867
upload-stage:
6968
name: Upload assets
70-
runs-on: ubuntu-20.04
69+
runs-on: ubuntu-latest
7170
needs: build
7271
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/development' }}
7372
strategy:
@@ -81,7 +80,7 @@ jobs:
8180

8281
steps:
8382
- name: Download assets
84-
uses: actions/download-artifact@v3
83+
uses: actions/download-artifact@v4
8584
with:
8685
name: assets
8786
path: umd
@@ -91,7 +90,7 @@ jobs:
9190
working-directory: umd
9291

9392
- name: Configure AWS credentials
94-
uses: aws-actions/configure-aws-credentials@v1-node16
93+
uses: aws-actions/configure-aws-credentials@v4
9594
with:
9695
role-to-assume: arn:aws:iam::${{ matrix.account_id }}:role/gha-public-assets-role
9796
aws-region: us-east-1
@@ -106,7 +105,7 @@ jobs:
106105

107106
upload-prod:
108107
name: Upload assets
109-
runs-on: ubuntu-20.04
108+
runs-on: ubuntu-latest
110109
needs: build
111110
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
112111
strategy:
@@ -120,7 +119,7 @@ jobs:
120119

121120
steps:
122121
- name: Download assets
123-
uses: actions/download-artifact@v3
122+
uses: actions/download-artifact@v4
124123
with:
125124
name: assets
126125
path: umd
@@ -130,7 +129,7 @@ jobs:
130129
working-directory: umd
131130

132131
- name: Configure AWS credentials
133-
uses: aws-actions/configure-aws-credentials@v1-node16
132+
uses: aws-actions/configure-aws-credentials@v4
134133
with:
135134
role-to-assume: arn:aws:iam::${{ matrix.account_id }}:role/gha-public-assets-role
136135
aws-region: us-east-1

.github/workflows/sonar-scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ on:
1212
jobs:
1313
build:
1414
name: Build
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Set up nodejs
23-
uses: actions/setup-node@v3
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: 'lts/*'
2626
cache: 'npm'

.github/workflows/update-license-year.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2024 Split Software, Inc.
1+
Copyright © 2025 Split Software, Inc.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ Split has built and maintains SDKs for:
6565
* .NET [Github](https://github.com/splitio/dotnet-client) [Docs](https://help.split.io/hc/en-us/articles/360020240172--NET-SDK)
6666
* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK)
6767
* Angular [Github](https://github.com/splitio/angular-sdk-plugin) [Docs](https://help.split.io/hc/en-us/articles/6495326064397-Angular-utilities)
68+
* Elixir thin-client [Github](https://github.com/splitio/elixir-thin-client) [Docs](https://help.split.io/hc/en-us/articles/26988707417869-Elixir-Thin-Client-SDK)
6869
* Flutter [Github](https://github.com/splitio/flutter-sdk-plugin) [Docs](https://help.split.io/hc/en-us/articles/8096158017165-Flutter-plugin)
6970
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
7071
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
7172
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
7273
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
7374
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
74-
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
75+
* Node.js [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
7576
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
7677
* PHP thin-client [Github](https://github.com/splitio/php-thin-client) [Docs](https://help.split.io/hc/en-us/articles/18305128673933-PHP-Thin-Client-SDK)
7778
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
@@ -84,4 +85,4 @@ For a comprehensive list of open source projects visit our [Github page](https:/
8485

8586
**Learn more about Split:**
8687

87-
Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](http://help.split.io) for more detailed information.
88+
Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](https://help.split.io) for more detailed information.

karma/config.debug.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
const merge = require('lodash/merge');
44

55
module.exports = merge({}, require('./config'), {
6+
customLaunchers: {
7+
ChromeNoSandbox: {
8+
base: 'Chrome',
9+
flags: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']
10+
}
11+
},
612
browsers: [
7-
'Chrome'
13+
'ChromeNoSandbox'
814
],
915
webpack: {
1016
mode: 'development'

karma/config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ module.exports = {
1515
],
1616

1717
// Run on Chrome Headless
18-
browsers: [
19-
'ChromeHeadless'
20-
],
18+
customLaunchers: {
19+
ChromeHeadlessNoSandbox: {
20+
base: 'ChromeHeadless',
21+
// Flags required to run in ubuntu-22.04 or above (https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md)
22+
flags: ['--no-sandbox', '--disable-setuid-sandbox']
23+
}
24+
},
25+
browsers: ['ChromeHeadlessNoSandbox'],
2126

2227
// list of files / patterns to load in the browser
2328
files: [

0 commit comments

Comments
 (0)