-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CI on MacOS/Windows/Ubuntu (#2883)
* Run CI on Ubuntu * Add CI job for Ubuntu * Fix codecov URL * Run CI on Windows * Run checkStyle on mutiple OS
- Loading branch information
1 parent
513b58d
commit 69ed135
Showing
6 changed files
with
73 additions
and
4 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
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,33 @@ | ||
name: Unit test(Ubuntu) | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 11 | ||
|
||
- name: Run unit tests | ||
run: sh ./build.sh | ||
|
||
- name: Upload Test Reports Folder | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status | ||
with: | ||
name: ut-reports | ||
path: app/build/reports/tests | ||
|
||
- name: Upload coverage reports to Codecov | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov |
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,33 @@ | ||
name: Unit test(Windows) | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 11 | ||
|
||
- name: Run unit tests | ||
run: sh ./build.sh | ||
|
||
- name: Upload Test Reports Folder | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status | ||
with: | ||
name: ut-reports | ||
path: app/build/reports/tests | ||
|
||
- name: Upload coverage reports to Codecov | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/windows/codecov | ||
chmod +x codecov | ||
./codecov |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Unit test | ||
name: Unit test(MacOS) | ||
on: | ||
push: | ||
branches: | ||
|
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