Archived
1
0
Fork 0
This repository has been archived on 2025-03-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
uranos/.github/workflows/build_and_test.yml

40 lines
864 B
YAML

# This workflow will build the project and test it
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Download Minecraft data
run: ./gradlew downloadMinecraftData
- name: Run code generation
run: ./gradlew generateAPIFiles
- name: Build with Gradle
run: ./gradlew build
- name: Test with Gradle
run: ./gradlew test