This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
forked from SuK-IT/Monitoring
-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 1.8 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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