Skip to content

Chore: small readme updates and add logo. #154

Chore: small readme updates and add logo.

Chore: small readme updates and add logo. #154

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
checks: write
pull-requests: write
jobs:
build:
name: Build and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webiny/[email protected]
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
- name: Build with Gradle
run: ./gradlew build
- name: Run tests
run: ./gradlew check
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: junit-test-results
path: '**/build/test-results/*/TEST-*.xml'
retention-days: 1
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: lib/build/reports/kover
retention-days: 1
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/build/test-results/*/TEST-*.xml
- name: Add coverage report to PR
id: kover
uses: mi-kas/kover-report@v1
with:
path: |
lib/build/reports/kover/report.xml
title: Code Coverage
update-comment: true