CI IT #403
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI IT | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1,3,5' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-m2it-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-m2- | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- uses: jvalkeal/setup-maven@v1 | |
with: | |
maven-version: 3.6.2 | |
- uses: manusa/actions-setup-minikube@v2.7.2 | |
with: | |
minikube version: v1.28.0 | |
kubernetes version: v1.24.10 | |
github token: ${{ secrets.GITHUB_TOKEN }} | |
# build | |
- name: Build | |
run: | | |
mvn -U -B -Pfailsafe clean install | |
# clean m2 cache | |
- name: Clean cache | |
run: | | |
find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr |