-
-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (38 loc) · 1.04 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
name: Build
on:
workflow_call:
inputs:
version:
description: Version to build
required: true
type: string
env:
JAVA_DISTRIBUTION: zulu
JAVA_VERSION: 21
jobs:
unit-test:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.version }}
- uses: actions/setup-java@v4
with:
cache: gradle
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- run: ./gradlew clean test spotlessCheck --exclude-task :chucknorris-integration-test:test
integration-test:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.version }}
- uses: actions/setup-java@v4
with:
cache: gradle
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Run Integration Test
shell: bash
run: ./chucknorris-integration-test/script/run-integration-test.sh