This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
feat: add sprint to settings #384
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- 'game/**' | |
- '.github/workflows/gradle.yaml' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 18 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '18' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 | |
- name: Running Unit Tests | |
working-directory: game | |
run: ./gradlew test | |
- name: Execute Gradle build | |
working-directory: game | |
run: ./gradlew dist | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Coverage Report | |
path: game/core/build/jacocoHtml | |
- name: Archive Game Build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Underwatch Game | |
path: game/desktop/build/libs/desktop-1.0.jar | |