Skip to content

Merge pull request #22 from icatproject/configure-dependabot-for-gh-a… #14

Merge pull request #22 from icatproject/configure-dependabot-for-gh-a…

Merge pull request #22 from icatproject/configure-dependabot-for-gh-a… #14

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build_and_tests:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8', '11' ]
steps:
- name: Setup Java
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Checkout authn-simple
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Run Build
run: mvn install -DskipTests
- name: Run Unit Tests
run: mvn test -B