forked from Mwexim/skript-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 947 Bytes
/
build.yml
File metadata and controls
41 lines (35 loc) · 947 Bytes
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
name: Build, Test & Upload
on:
push:
branches:
- master
- dev/**
pull_request:
jobs:
building:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 25
uses: actions/setup-java@v4.2.1
with:
java-version: '25'
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build --no-daemon
- name: Run tests
run: ./gradlew test --no-daemon
- name: Upload a Build Artifact
uses: actions/upload-artifact@master
if: success()
with:
name: skript-nightly
path: build/libs/**