Skip to content

feat: implemented /network endpoints, fixed block repository, added t… #13

feat: implemented /network endpoints, fixed block repository, added t…

feat: implemented /network endpoints, fixed block repository, added t… #13

Workflow file for this run

name: Main branch
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout badges branch
uses: actions/checkout@v3
with:
ref: badges
path: badges
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean package --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
- name: Test project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean verify --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: cardano-rosetta-java
path: api/target/*.jar
- name: Generate Jacoco Badge
id: jacoco
uses: cicirello/jacoco-badge-generator@v2
with:
badges-directory: badges
generate-branches-badge: true
jacoco-csv-file: api/target/site/jacoco/jacoco.csv
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branches = ${{ steps.jacoco.outputs.branches }}"