forked from upstream-mirrors/quik
32 lines
542 B
YAML
32 lines
542 B
YAML
name: Build and Test on Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '17'
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Run Tests
|
|
run: ./gradlew test
|
|
|
|
- name: Deploy Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: build-artifacts
|
|
path: build/libs/
|