Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/java-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,21 @@ jobs:
restore-keys: |
${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

- name: Setup DAT2CSV
run: run/setup_dat_importing
- name: Install DAT2CSV JAR to local Maven repo
run: mvn install:install-file -Dfile=resources/DAT2CSV-1.0.jar -DgroupId=org.ngafid -DartifactId=dat2csv -Dversion=1.0 -Dpackaging=jar

- name: Maven Compile
run: mvn clean install -DskipTests

- name: Maven Test
run: mvn test

- name: Generate JaCoCo Coverage Report
run: mvn jacoco:report

- name: Upload JaCoCo Coverage Report
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: |
**/target/site/jacoco
13 changes: 9 additions & 4 deletions ngafid-frontend/src/airsync_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class AirSyncSettings extends React.Component {
timeout: timeout
}

console.log(submissionData);

timeout: timeout
}
var theseSettings = this;

$.ajax({
Expand All @@ -32,16 +32,21 @@ class AirSyncSettings extends React.Component {
success: function (response) {
console.log("got airsync_settings response:");
console.log(response);

data: submissionData,
theseSettings.state = {
timeout: response.timeout
};

console.log(response);
theseSettings.setState(theseSettings.state);
},
error: function (jqXHR, textStatus, errorThrown) {
console.log("error updating the timeout");
},
};
async: false
});
console.log("error updating the timeout");
},

async: false
});
Expand Down
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,26 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading