Adding API endpoint for getting current repo coverage #2467
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Server & Gradle plugin test | |
on: | |
push: | |
paths-ignore: | |
- 'functional-test/**' | |
- 'publishers/node-script/**' | |
- 'ui/**' | |
jobs: | |
gradle-build: | |
runs-on: ubuntu-22.04 | |
services: | |
database: | |
image: postgres:15.3-alpine | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: testuser | |
POSTGRES_PASSWORD: testpass | |
POSTGRES_DB: projektordb | |
TZ: UTC | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
objectstorage: | |
image: bitnami/minio:2020.8.4-debian-10-r0 | |
ports: | |
- "9000:9000" | |
volumes: | |
- /tmp:/data | |
env: | |
MINIO_ACCESS_KEY: minio_access_key | |
MINIO_SECRET_KEY: minio_secret_key | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Build with Gradle | |
env: | |
DB_URL: "jdbc:postgresql://localhost:5432/projektordb" | |
PROJEKTOR_TOKEN: ${{ secrets.PROJEKTOR_TOKEN }} | |
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }} | |
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }} | |
HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }} | |
run: ./gradlew check jTR | |
- name: Projektor report URL | |
uses: craigatk/projektor-action@v14 | |
if: failure() || success() | |
with: | |
print-link: true |