Skip to content

Bump actions/cache from 3 to 4 #69

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #69

Workflow file for this run

name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- name: Checkout m2e
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
repository: 'eclipse-m2e/m2e-core'
ref: 'master'
- name: Checkout tests
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
repository: 'tesla/m2e-core-tests'
path: 'm2e-core-tests'
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.9
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
# re-cache on changes in the pom and target files
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '**/*.target') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build m2e-core
uses: coactions/setup-xvfb@v1
with:
run: mvn clean verify -Pits -Dtycho.p2.baselineMode=warn --batch-mode
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.os }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml
event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Event File
path: ${{ github.event_path }}