Skip to content

tests: add test case for validity of subsequent events #161

tests: add test case for validity of subsequent events

tests: add test case for validity of subsequent events #161

Workflow file for this run

name: Assemble project
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build library
run: ./gradlew :parsely:assembleDebug
- name: Build example app
run: ./gradlew :example:assembleDebug
- name: Android Lint
run: ./gradlew lintDebug
- name: Android Unit Tests
run: ./gradlew :parsely:testDebugUnitTest
- name: Generate XML coverage report
run: ./gradlew :parsely:koverXmlReportDebug
- uses: codecov/codecov-action@v3
with:
files: parsely/build/reports/kover/reportDebug.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Validate Maven publication
run: ./gradlew :parsely:publishReleasePublicationToMavenLocal
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
- name: Publish build artifacts
uses: actions/upload-artifact@v3
with:
name: artifact
path: ~/.m2/repository/com/parsely/parsely/*