This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
Update actions/setup-java action to v4 #339
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: Test | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Where is Java | |
run: which java | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build --info --stacktrace | |
- name: List files in libs | |
run: ls -ahl build/libs | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts-gradle | |
path: | | |
build/libs/ | |
!build/libs/libraries/ | |
frontend/dist/spa | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: report | |
path: build/reports/tests/test/ | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get branch name | |
id: branch-name | |
uses: tj-actions/branch-names@v7 | |
# DOCKER RELATED | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
build-args: | | |
BRANCH_OR_TAG=${{ steps.branch-name.outputs.current_branch }} | |
HOSTER=github.com | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
push: false |