mirror of
https://github.com/pcvolkmer/mv64e-onkostar-plugin-export.git
synced 2025-09-13 05:02:52 +00:00
31 lines
744 B
YAML
31 lines
744 B
YAML
name: 'Run Tests'
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'master' ]
|
|
tags: [ '*' ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'temurin'
|
|
|
|
- name: Fetch Onkostar-API
|
|
run: |
|
|
curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} \
|
|
https://git.dnpm.dev/api/packages/Plugin-JF-Onkostar/generic/onkostar-api/2.14.1/onkostar-api-2.14.1.jar \
|
|
--output ${{ github.workspace }}/libs/onkostar-api-2.14.1.jar
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v3
|
|
|
|
- name: Run tests
|
|
run: ./gradlew test
|