Skip to content

Adding API endpoint to fetch latest test run summaries for a repo (#1… #163

Adding API endpoint to fetch latest test run summaries for a repo (#1…

Adding API endpoint to fetch latest test run summaries for a repo (#1… #163

Workflow file for this run

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Release server
jobs:
build:
name: Create and upload release
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:
- name: Checkout code
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'gradle'
- name: Set env
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11})
- name: ui install
run: |
cd ui
yarn install
- name: Build project
env:
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }}
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }}
HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }}
run: |
./gradlew :server:server-app:assembleFull -PreleaseVersion=${{ env.RELEASE_VERSION }}
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./server/server-app/build/libs/server-app-1.0-all.jar
asset_name: projektor-server-${{ env.RELEASE_VERSION }}.jar
asset_content_type: application/java-archive