-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 1.23 KB
/
build-test.yaml
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 codebase
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- '.gitignore'
- 'CHANGELOG.md'
- 'LICENSE'
- 'README.md'
- 'renovate.json'
- 'docs/**'
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
jvm_version: [21]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup JDK ${{ matrix.jvm_version }}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.jvm_version }}
- name: Test
run: ./gradlew test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Assemble classes and test classes
run: ./gradlew classes testClasses
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: ./gradlew build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
success:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "🎉 Build, Test and Check steps succeeded!"