PackageViewer/.github/workflows/ci.yml
2022-12-15 13:50:47 +01:00

51 lines
853 B
YAML

name: CI
on:
push:
branches: ['*']
pull_request:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build
run: |
./gradlew jar
- name: Upload PackageViewer jar
uses: actions/upload-artifact@v3
with:
name: PackageViewer jar
path: ./build/libs/PackageViewer*.jar
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Run tests
run: |
./gradlew test