Skip to content

check generated code on CI #29

check generated code on CI

check generated code on CI #29

Workflow file for this run

name: Build
on:
pull_request:
push:
branches: [ "main" ]
jobs:
gradle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
arguments: build koverXmlReport --scan
- name: Check tests are generated
shell: bash
run: |
git diff --name-only | grep "generated-code-tests" -vqz
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}