Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

tests

tests #1037

Workflow file for this run

name: tests
on:
schedule:
- cron: "0 0 * * *"
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run tests with Maven
run: mvn -B test --file pom.xml
- name: Deletes old packages
uses: actions/delete-package-versions@v3
with:
package-name: 'com.pauloelienay.slinky'
min-versions-to-keep: 2