Skip to content
Merged
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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: maven

- name: Build and Test
run: mvn -B verify --file pom.xml

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: target/surefire-reports/
retention-days: 7

2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7
25
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.14.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/io/gsonfire/gson/HooksTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ public void postSerialize(JsonElement result, A src, Gson gson) {
assertEquals(0, countWhenDeserialize.get());
}

private class A{
private static class A{
private int count = 0;
private transient int nonSerializable = -1;
private Gson gson;
private transient Gson gson;

private A(int count) {
this.count = count;
Expand Down Expand Up @@ -154,7 +154,7 @@ public Gson getGson() {
}
}

private class B extends A {
private static class B extends A {
public B b;

private B(int count) {
Expand Down