25 lines
914 B
YAML
25 lines
914 B
YAML
name: tests
|
|
on: push
|
|
jobs:
|
|
run_tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Install curl (for nektos/act local CI testing)
|
|
run: apt-get update && apt-get install build-essential curl pkg-config openssl -y
|
|
- name: Download Maven
|
|
run: |
|
|
curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip
|
|
apt-get update
|
|
apt-get -y install unzip
|
|
unzip -d /usr/share maven.zip
|
|
rm maven.zip
|
|
ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
|
|
echo "M2_HOME=/usr/share/apache-maven-3.6.3" | tee -a /etc/environment
|
|
- name: Run tests with Maven
|
|
run: mvn -B test --file pom.xml |