Skip to content

Update git actions #661

Update git actions

Update git actions #661

Workflow file for this run

name: Integration tests (Ubuntu, OpenJDK17)
on: [push, pull_request]
workflow_dispatch:

Check failure on line 4 in .github/workflows/jdk-17-tests.yml

View workflow run for this annotation

GitHub Actions / Integration tests (Ubuntu, OpenJDK17)

Invalid workflow file

The workflow is not valid. .github/workflows/jdk-17-tests.yml (Line: 4, Col: 1): Unexpected value 'workflow_dispatch'
inputs:
profile:
description: 'Maven Profile to Run'
required: true
type: string
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- id: 1
profile: tests-mediators_tests-other_tests-sample
- id: 2
profile: tests-service_tests-patches_service-samples
- id: 3
profile: tests-transport_tests-platform
- id: 4
profile: management-api_dss-tests
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11.0.12+7'
- name: check mvn version
run: echo "MAVEN_VERSION=$(mvn -v)"
- name: check java version
run: echo "JAVA_VERSION=$(java -version)"
- name: Build in jdk11
run: mvn -B clean install -DskipTests --file pom.xml
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17.0.6'
- name: check mvn version
run: echo "MAVEN_VERSION=$(mvn -v)"
- name: check java version
run: echo "JAVA_VERSION=$(java -version)"
- name: Print segment
run: echo "Running build for segment ${{ matrix.profile }}"
- name: JDK 17 Tests
run: mvn -B clean install --file integration/pom.xml -P ${{ matrix.profile }} -fae