Skip to content

Commit

Permalink
Merge pull request #16 from DemocracyDevelopers/unit-test-workflow
Browse files Browse the repository at this point in the history
Added a github action workflow for running unit tests when creating a…
  • Loading branch information
michelleblom authored Feb 2, 2024
2 parents 0d9d478 + e53bd09 commit 2d7e29b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run Unit Tests

run-name: ${{ github.actor {} is making a pull request

on:
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set up JDK 1.17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'

- name: Build
run: mvn --batch-mode -DskipTests package

- name: Test
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test

- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</build>

<modules>
<module>raire-java</module>
<module>raire-java/pom-raire-service.xml</module>
</modules>

</project>
2 changes: 1 addition & 1 deletion raire-java
Submodule raire-java updated 77 files
+1 −0 Australian Examples/NSW Local Government/2021/Ballina Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Ballina Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Bellingen Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Bellingen Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Burwood Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Burwood Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Byron Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Byron Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Canada Bay Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Canada Bay Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Broken Hill Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Broken Hill Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Cessnock Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Cessnock Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Coffs Harbour Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Coffs Harbour Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Griffith Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Griffith Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Lake Macquarie Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Lake Macquarie Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Lismore Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Lismore Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Liverpool Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Liverpool Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Maitland Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Maitland Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Newcastle Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Newcastle Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Orange Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Orange Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Shellharbour Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Shellharbour Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Shoalhaven Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Shoalhaven Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Sydney Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Sydney Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Willoughby Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Willoughby Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Wollongong Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/City of Wollongong Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Eurobodalla Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Eurobodalla Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Hornsby Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Hornsby Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Hunter's Hill Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Hunter's Hill Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Kempsey Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Kempsey Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Mosman Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Mosman Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Nambucca Valley Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Nambucca Valley Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Port Macquarie-Hastings Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Port Macquarie-Hastings Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Port Stephens Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Port Stephens Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Richmond Valley Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Richmond Valley Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Singleton Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Singleton Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/The Hills Shire Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/The Hills Shire Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Uralla Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Uralla Mayoral_out.json
+1 −0 Australian Examples/NSW Local Government/2021/Wollondilly Mayoral.json
+1 −0 Australian Examples/NSW Local Government/2021/Wollondilly Mayoral_out.json
+16 −0 Australian Examples/NSW Local Government/Copyright.txt
+40 −1 README.md
+71 −0 pom-raire-service.xml
+1 −1 src/main/java/au/org/democracydevelopers/raire/assertions/Assertion.java
+2 −2 src/main/java/au/org/democracydevelopers/raire/assertions/AssertionAndDifficulty.java
+1 −1 src/main/java/au/org/democracydevelopers/raire/assertions/NotEliminatedBefore.java
+1 −1 src/main/java/au/org/democracydevelopers/raire/assertions/NotEliminatedNext.java
+2 −2 src/main/java/au/org/democracydevelopers/raire/pruning/HeuristicWorkOutWhichAssertionsAreUsed.java
+2 −2 src/main/java/au/org/democracydevelopers/raire/pruning/TreeNodeShowingWhatAssertionsPrunedIt.java
+66 −0 src/test/java/au/org/democracydevelopers/raire/TestNSW.java
+4 −4 src/test/java/au/org/democracydevelopers/raire/TestPruningTreeCreation.java

0 comments on commit 2d7e29b

Please sign in to comment.