Skip to content

Add JsonIgnoreProperties to EpochValidationInput #295

Add JsonIgnoreProperties to EpochValidationInput

Add JsonIgnoreProperties to EpochValidationInput #295

Workflow file for this run

name: 🎳 Run Tests
on:
push:
pull_request:
types: [ opened, synchronize ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v3
- name: 🔌 Setup JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
cache: maven
- name: 🔨 Build
run: |
./mvnw --batch-mode --update-snapshots clean package -DskipTests
- name: ⬇️ Download test data
uses: keithweaver/[email protected]
with:
command: cp
source: ${{ secrets.AWS_S3_BUCKET }}
destination: ${{ github.workspace }}/rewards-calculation-test-data
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
flags: --recursive
- name: 🍀 Generate .env file
run: |
echo "SPRING_PROFILES_ACTIVE=ci" >> validation/src/main/resources/.env
echo "RUN_MODE=test" >> validation/src/main/resources/.env
echo "OVERWRITE_EXISTING_DATA=false" >> validation/src/main/resources/.env
echo "JSON_DATA_SOURCE_FOLDER=${{ github.workspace }}/rewards-calculation-test-data" >> validation/src/main/resources/.env
- name: 🎳 Test
run: |
./mvnw clean verify
- name: 📊️ Publish coverage report to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main'
with:
BRANCH: gh-pages
folder: validation/target/site/jacoco-aggregate
target-folder: coverage-report/
- name: ✅ Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
if: github.ref == 'refs/heads/main'
with:
generate-branches-badge: true
jacoco-csv-file: validation/target/site/jacoco-aggregate/jacoco.csv
badges-directory: validation/build/reports/jacoco-aggregate/test/html/badges
- name: 💾 Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: 📤 Publish coverage report to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: validation/build/reports/jacoco-aggregate/test/html/badges
target-folder: badges/