Skip to content

fix build? add job dependency #85

fix build? add job dependency

fix build? add job dependency #85

name: Build and Test
on:
push:
workflow_dispatch:
# list of OSes and what they contain https://github.com/actions/virtual-environments
jobs:
# This steps uses the maven cache better
Prepare Maven:

Check failure on line 11 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 11, Col: 3): The identifier 'Prepare Maven' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/build-and-test.yml (Line: 33, Col: 3): The identifier 'Build and Test' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
env:
MAVEN_OPTS: "-Xmx6144m"
steps:
- name: ↙️ Check out repository code from git
uses: actions/checkout@v3
with:
repository: Calpano/graphinout
path: graphinout
- name: ☕ Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: "🐹 Download all dependencies and 'go offline'"
working-directory: cc-j2cl-mvp
run: mvn --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.2.0:go-offline
Build and Test:
needs: Prepare Maven
runs-on: ubuntu-latest
env:
MAVEN_OPTS: "-Xmx6144m"
steps:
- name: ↙️ Check out repository code from git
uses: actions/checkout@v3
with:
repository: Calpano/graphinout
path: graphinout
- name: ☕ Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: ⬇️ Install root project
working-directory: graphinout
run: mvn clean -N install
- name: 🔨️ Build & ⬇ install base
working-directory: graphinout/base
run: mvn clean install
- name: 🔨️ Build & ⬇ install readers
working-directory: graphinout
run: mvn clean -pl !base,!engine,!app-cmdline,!app-rest-service install
- name: 🔨️ Build & ⬇ install engine
working-directory: graphinout
run: mvn clean -pl engine install
- name: 🔨️ Build & ⬇ install app-cmdline
working-directory: graphinout
run: mvn clean -pl app-cmdline install
- name: 🔨️ Build & ⬇ install app-rest-service
working-directory: graphinout
run: mvn clean -pl app-rest-service install