-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4055fcb
commit f325ac8
Showing
36 changed files
with
2,687 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
name: Build and Test | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
push: | ||
branches: | ||
- master | ||
- beta | ||
|
||
jobs: | ||
|
||
build-ubuntu-11-14: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [11.x,14.x] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install TypeScript 4.1.3 | ||
run: npm install [email protected] --force | ||
|
||
- name: Install Dependencies | ||
run: npm install --force && npm install jest --force | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run unit test cases on Ubuntu | ||
run: npm run test:unit-jenkins | ||
continue-on-error: true | ||
|
||
|
||
build-ubuntu-16-18: | ||
runs-on: ubuntu-latest | ||
needs: build-ubuntu-11-14 | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install TypeScript 4.1.3 | ||
run: npm install [email protected] --force | ||
|
||
- name: Install Dependencies | ||
run: npm install --force && npm install jest --force | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run unit test cases on Ubuntu | ||
run: npm run test:unit-jenkins | ||
continue-on-error: true | ||
|
||
|
||
build-ubuntu-20-latest: | ||
runs-on: ubuntu-latest | ||
needs: build-ubuntu-16-18 | ||
strategy: | ||
matrix: | ||
node-version: [20.x, latest] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm install --force && npm install jest --force | ||
|
||
- name: Install TypeScript 4.1.3 | ||
run: npm install [email protected] --force | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run unit test cases on Ubuntu | ||
run: npm run test:unit-jenkins | ||
continue-on-error: true | ||
|
||
|
||
|
||
build-macos: | ||
runs-on: macos-latest | ||
needs: build-ubuntu-20-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x, 20.x, latest] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm install --force && npm install jest --force | ||
|
||
- name: Install TypeScript 4.1.3 | ||
run: npm install [email protected] --force | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run unit test cases on macOS | ||
run: npm run test:unit | ||
continue-on-error: true | ||
|
||
|
||
build-windows: | ||
runs-on: windows-latest | ||
needs: build-macos | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x, 20.x, latest] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm install --force && npm install jest --force | ||
|
||
- name: Install TypeScript 4.1.3 | ||
run: npm install [email protected] --force | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run unit test cases on Windows | ||
run: npm run test:unit-windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare module "*.worker.ts" { | ||
// You need to change `Worker`, if you specified a different value for the `workerType` option | ||
class WebpackWorker extends Worker { | ||
constructor(); | ||
} | ||
|
||
// Uncomment this if you set the `esModule` option to `false` | ||
// export = WebpackWorker; | ||
export default WebpackWorker; | ||
}; |
Oops, something went wrong.