Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
6640: Run spotless and tests as part of the workflow
- Loading branch information
1 parent
db8c7e4
commit 93ab7cd
Showing
9 changed files
with
122 additions
and
1 deletion.
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,40 @@ | ||
name: Check formatting and run tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
linux: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check formatting | ||
run: ./scripts/checkformatting.sh | ||
- name: Run core tests | ||
run: ./scripts/runcoretests.sh | ||
- name: Run application tests | ||
run: ./scripts/runapptests.sh | ||
|
||
mac: | ||
runs-on: 'macOS-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check formatting | ||
run: ./scripts/checkformatting.sh | ||
- name: Run core tests | ||
run: ./scripts/runcoretests.sh | ||
- name: Run application tests | ||
run: ./scripts/runapptests.sh | ||
|
||
win: | ||
runs-on: 'windows-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check formatting | ||
run: .\scripts\checkformatting.bat | ||
shell: cmd | ||
- name: Run core tests | ||
run: .\scripts\runcoretests.bat | ||
shell: cmd | ||
- name: Run application tests | ||
run: .\scripts\runapptests.bat | ||
shell: cmd |
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
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,15 @@ | ||
@echo off | ||
echo "======== Building p2 repo ===================" | ||
cd releng\third-party | ||
mvn p2:site | ||
echo "======== Starting p2 repo ===================" | ||
start /B cmd /C "mvn jetty:run" | ||
cd ..\..\core | ||
echo "======== Installing core ====================" | ||
call mvn install | ||
echo "======== Running spotless for core ==========" | ||
mvn spotless:check | ||
echo "======== Running spotless for application ===" | ||
cd .. | ||
mvn -Puitests spotless:check | ||
echo "======== Finished ===========================" |
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,18 @@ | ||
#!/bin/sh -l | ||
|
||
set -e | ||
echo "======== Building p2 repo ===================" | ||
cd releng/third-party | ||
sh -c "mvn p2:site" | ||
echo "======== Starting p2 repo ===================" | ||
sh -c "nohup mvn jetty:run &" | ||
cd ../../core | ||
echo "======== Installing core ====================" | ||
sh -c "mvn install" | ||
echo "======== Running spotless for core ==========" | ||
sh -c "mvn spotless:check" | ||
echo "======== Running spotless for application ===" | ||
cd .. | ||
sh -c "mvn -Puitests spotless:check" | ||
echo "======== Finished ===========================" | ||
|
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,14 @@ | ||
@echo off | ||
REM Seems we need to restart repo | ||
cd releng\third-party | ||
echo "======== Starting p2 repo ===================" | ||
start /B cmd /C "mvn jetty:run" | ||
cd ..\..\core | ||
REM Seems we need to re-install core | ||
echo "======== Installing core ====================" | ||
call mvn install | ||
cd .. | ||
echo "======== Running application tests ==========" | ||
mvn verify | ||
echo "======== Finished ===========================" | ||
|
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,9 @@ | ||
#!/bin/sh -l | ||
|
||
set -e | ||
# Note that core must have been installed, and the p2 repo started | ||
# before running this. | ||
echo "======== Running application tests ==========" | ||
sh -c "mvn verify" | ||
echo "======== Finished ===========================" | ||
|
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,6 @@ | ||
@echo off | ||
echo "======== Running core tests =================" | ||
cd core | ||
mvn verify | ||
echo "======== Finished ===========================" | ||
|
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,8 @@ | ||
#!/bin/sh -l | ||
|
||
set -e | ||
echo "======== Running core tests =================" | ||
cd core | ||
mvn verify | ||
echo "======== Finished ===========================" | ||
|