File tree Expand file tree Collapse file tree 7 files changed +64
-31
lines changed Expand file tree Collapse file tree 7 files changed +64
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Build SDK Files & S3 Upload
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ test_build_deploy :
8+ runs-on : ubuntu-latest
9+
10+ strategy :
11+ matrix :
12+ node-version : [14.x]
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ - name : Use Node.js ${{ matrix.node-version }}
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ${{ matrix.node-version }}
20+ - name : " [Setup] Install dependencies"
21+ run : yarn
22+ - name : " [Test] Run all tests"
23+ run : yarn test:CI
24+ - name : " [Build] Staging"
25+ env :
26+ STAGING_DOMAIN : ${{ secrets.STAGING_DOMAIN }}
27+ run : BUILD_ORIGIN=${STAGING_DOMAIN} API=staging API_ORIGIN=${STAGING_DOMAIN} yarn build:staging
28+ - name : " [Build] Production"
29+ run : yarn build:prod
30+ - name : " [Deploy] Upload SDK Files to S3"
31+ env :
32+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
33+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
34+ run : ./build/scripts/s3-simple-upload-all.sh build/releases s3://onesignal-build/websdk/${{ github.sha }}
35+ - name : " [Deploy] Upload AMP SDK Files to S3"
36+ env :
37+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
38+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39+ run : ./build/scripts/s3-simple-upload-all.sh build/amp s3://onesignal-build/websdk/${{ github.sha }}
Original file line number Diff line number Diff line change 1+ name : Run Tests
2+ on :
3+ pull_request :
4+ branches :
5+ - " **"
6+
7+ jobs :
8+ test :
9+ runs-on : ubuntu-latest
10+
11+ strategy :
12+ matrix :
13+ node-version : [14.x]
14+
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : Use Node.js ${{ matrix.node-version }}
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : ${{ matrix.node-version }}
21+ - name : " [Setup] Install dependencies"
22+ run : yarn
23+ - name : " [Test] Run all tests"
24+ run : yarn test:CI
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- [ ![ Build Status] ( https://travis-ci.org/OneSignal/OneSignal-Website-SDK.svg?branch=master )] ( https://travis-ci.org/OneSignal/OneSignal-Website-SDK )
2-
31<p align =" center " >
42 <img src =" https://media.onesignal.com/cms/Website%20Layout/logo-red.svg " />
53 <br />
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Tests are built to run with the [AVA test runner](https://github.com/avajs/ava)
1010### Option 1 - Run locally
1111> Recommend for macOS or if you haven't used or setup docker before.
1212
13- 1 . Install the specific version of Node.js defined in ` .travis .yml` in this repo.
13+ 1 . Install the specific version of Node.js defined in the Github Actions ` ci .yml` in this repo.
1414
1515### Option 2 - Run with Docker
1616> NOT Recommend for macOS due to performance issues, about 10x slower.
You can’t perform that action at this time.
0 commit comments