-
Notifications
You must be signed in to change notification settings - Fork 273
40 lines (37 loc) · 954 Bytes
/
build_test.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
name: Build KSE and run tests
on:
pull_request:
branches: [ main ]
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Set up JDK'
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: 'Grant execute permission for gradlew'
run: chmod +x gradlew
working-directory: kse
- name: 'Setup Gradle'
uses: gradle/gradle-build-action@v2
- name: 'Build with Gradle'
run: ./gradlew build
working-directory: kse
- name: 'Publish Test Report'
if: always()
uses: actions/upload-artifact@v2
with:
name: 'test-report'
path: kse/build/reports/tests/test/*
- name: 'Publish Build'
if: always()
uses: actions/upload-artifact@v2
with:
name: 'artifacts'
path: |
build/libs/kse.jar
kse/build/distributions/kse-*.zip