Update perf-testing project #65
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: Relay storage service CI | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: relay-store-service | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 23 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 23 | |
- name: Cache Gradle packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build with infrastructure libs | |
run: gradle publishToMavenLocal -p "../infrastructure/" | |
- name: Build with Gradle | |
run: gradle build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: built-service | |
path: relay-store-service/build/libs | |
if-no-files-found: error | |
- name: Generate test report | |
run: gradle jacocoTestReport | |
# - name: Sonar analyse | |
# run: gradle sonar | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_DATA_SERVICE_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} | |
# docker: | |
# name: Publish to Docker Hub | |
# runs-on: ubuntu-latest | |
# needs: [ build ] | |
# env: | |
# REPO: ${{ secrets.DOCKER_REPO }} | |
# | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - uses: actions/download-artifact@v2 | |
# with: | |
# name: builded-service | |
# path: data-service/build/libs | |
# - name: Login to Docker Hub | |
# run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} | |
# - name: Build latest Docker image | |
# run: docker build -t ${{ secrets.DOCKER_USER }}/$REPO:latest . | |
# - name: Publish Docker image | |
# run: docker push ${{ secrets.DOCKER_USER }}/$REPO:latest |