Update to Jmix 2.4.0 #27
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: CI pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ci: | |
name: CI pipeline | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v1 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Run tests | |
env: | |
PREMIUM_REPO_USER: ${{ secrets.PREMIUM_REPO_USER }} | |
PREMIUM_REPO_PASS: ${{ secrets.PREMIUM_REPO_PASS }} | |
run: ./gradlew test | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
- name: Build Docker Image | |
if: ${{ github.ref == 'refs/heads/main' }} | |
env: | |
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }} | |
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
run: ./gradlew -Pvaadin.productionMode=true bootBuildImage |