-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.26 KB
/
service-discovery-ci.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
name: Build and test
on:
push:
branches: [ main ]
paths:
- service-discovery-app/**
- service-discovery-ft/**
- gradle/libs.versions.toml
pull_request:
branches: [ main ]
paths:
- service-discovery-app/**
- service-discovery-ft/**
- gradle/libs.versions.toml
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'debug'
type: choice
options:
- info
- warning
- debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Build Service Discovery module
run: ./gradlew --no-daemon :service-discovery-app:build -x test
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Run unit tests
run: ./gradlew --no-daemon :service-discovery-app:test
- name: Run functional tests
run: ./gradlew --no-daemon :service-discovery-ft:cucumber