PackageViewer/.github/workflows/ci.yml
2022-12-13 09:51:53 +01:00

48 lines
783 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
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build
run: |
./gradlew 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
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Run testsClassDiagram1
run: |
./gradlew test