Skip to content

Merge pull request #1 from PluginCraft-Solutions/feature/auto-test #15

Merge pull request #1 from PluginCraft-Solutions/feature/auto-test

Merge pull request #1 from PluginCraft-Solutions/feature/auto-test #15

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- development
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2
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