-
-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (45 loc) · 1.13 KB
/
build.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
name: Build
on:
push:
jobs:
backend:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: fake
AWS_SECRET_ACCESS_KEY: fake
AWS_ENDPOINT: http://localhost:4566
AWS_REGION: eu-central-1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d localstack opensearch-node1 azurite azurite_storage_init
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Build and test backend
run: ./mvnw install
- name: Upload production artifact
uses: actions/upload-artifact@v4
with:
name: tapir
path: |
target/quarkus-app/
retention-days: 3
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/main/webui
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install
run: yarn install
- name: lint
run: yarn lint
- name: test
run: yarn test