Skip to content

build: prepare release #259

build: prepare release

build: prepare release #259

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
pull_request:
branches:
- main
jobs:
TypeScript:
name: Run Js tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x, 15.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
working-directory: ./web-client-react
- name: Run tests
run: npm test
working-directory: ./web-client-react
JVM:
name: Run JVM tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run detekt
run: ./gradlew detekt
- name: Run unit tests
run: ./gradlew test
- name: Stop Gradle
run: ./gradlew --stop
- name: Cleanup Gradle cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- name: Publish Test Report (only during failures)
uses: mikepenz/action-junit-report@v2
if: ${{ failure() }}
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}