Skip to content

Bump actions/checkout from 3.3.0 to 4.0.0 #76

Bump actions/checkout from 3.3.0 to 4.0.0

Bump actions/checkout from 3.3.0 to 4.0.0 #76

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build_and_tests:
runs-on: ubuntu-22.04
strategy:
matrix:
java_version: [11, 17]
steps:
- name: Setup Java
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
- name: Run apt-get update
run: sudo apt-get update
- 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 icat-lucene
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Run Build
run: mvn install -Dmaven.install.skip -DskipTests
- name: Run Unit Tests
run: mvn test -B