Finalize CI/CD Pipeline - #2897
Conversation
…sfully. Meaningful code: added GsonVersion as a version displaying feature (and the respective unit test too)
Done build automation with added Gson versioning feature
Configure unit test and code coverage test with report
Add Dockerfile for deployment automation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository code | ||
| uses: actions/checkout@v3 | ||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '11' | ||
| distribution: 'temurin' | ||
| - name: Build project with Maven | ||
| run: mvn -B verify --file pom.xml | ||
| - name: Upload build artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: gson-jar | ||
| path: gson/target/gson-*.jar | ||
|
|
||
| test: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
| needs: build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository code | ||
| uses: actions/checkout@v3 | ||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '11' | ||
| distribution: 'temurin' | ||
| - name: Run unit tests with Maven | ||
| run: mvn -B verify | ||
| - name: Upload test reports | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test-reports | ||
| path: gson/target/surefire-reports/ | ||
|
|
||
| deploy: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
| needs: test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Download build artifact | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: gson-jar | ||
| path: gson/target/ | ||
|
|
||
| - name: Build Docker image | ||
| run: docker build -t gson-app . |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Purpose
Description
Checklist
This is automatically checked by
mvn verify, but can also be checked on its own usingmvn spotless:check.Style violations can be fixed using
mvn spotless:apply; this can be done in a separate commit to verify that it did not cause undesired changes.null@since $next-version$(
$next-version$is a special placeholder which is automatically replaced during release)TestCase)mvn clean verify javadoc:jarpasses without errors