Skip to content

Merge pull request #480 from eclipse-cognicrypt/dependabot/maven/plug… #33

Merge pull request #480 from eclipse-cognicrypt/dependabot/maven/plug…

Merge pull request #480 from eclipse-cognicrypt/dependabot/maven/plug… #33

name: CogniCrypt build
on: [push, pull_request]
jobs:
# Builds the project in Windows
build:
strategy:
matrix:
os: [windows-latest]
# Runs on Windows
runs-on: ${{ matrix.os }}
name: Project build in ${{ matrix.os }}
steps:
# Downloads CogniCrypt repository
- name: Checkout source code
uses: actions/checkout@v2
# Sets up Java version
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-package: jdk
java-version: '8'
# Sets up Maven version
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.6.3
# Checks Java version
- name: Check Java version
run: java -version
# Checks Maven version
- name: Check Maven version
run: mvn -version
# Restores Maven dependecies
- name: Restore local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Compiles, tests, and packages the CogniCrypt project
- name: Compile, test, and package the project
run: mvn clean install