-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.05 KB
/
dev-build.yml
File metadata and controls
42 lines (39 loc) · 1.05 KB
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
name: Development Build
on:
push:
branches: [ Development ]
pull_request:
branches: [ Development ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Create mongo Docker container
id: build_mongo_docker
uses: DigiPie/mongo-action@v2.0.1
with:
image-version: latest
port: 27017
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: Development
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'
- name: Cache Maven repository
uses: actions/cache@v4
with:
path: .m2/repository # maven repository files are stored here
key: ${{ runner.OS }}-maven-${{ hashFiles('pom.xml') }}
- name: Override Mongo connection url
uses: myci-actions/export-env-var@1
with:
name: _TEST_QUARKUS_MONGODB_PROJECTS_CONNECTION_STRING
value: "mongodb://localhost:27017"
- name: Build with Maven
run: |
mkdir scratch
mvn -B package --file pom.xml