Skip to content

CI Build

CI Build #956

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install React front end dependencies
run: |
pushd java/helidon-server/src/main/web/react
npm install
popd
pushd java/micronaut-server/src/main/web/react
npm install
popd
pushd java/spring-server/src/main/web/react
npm install
popd
- name: Install Oracle JET
run: npm install -g @oracle/ojet-cli
- name: Build Oracle JET front end
run: |
pushd java/helidon-server/src/main/web/jet
npm install
ojet build
popd
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.count=3
run: mvn -B install --file java/pom.xml -s java/.mvn/settings.xml -P docker
- name: Run Helidon Server
run: |
pushd java/helidon-server
mvn exec:exec -s ../.mvn/settings.xml &
popd
- name : Run Node.js Server
run: |
pushd js
npm install
npm run start &
popd
- name: Run JavaFX Coherence Client
run: |
pushd java/coherence-client
mvn javafx:run -s ../.mvn/settings.xml &
popd
- name: Run JavaFX Helidon Client
run: |
pushd java/helidon-client
mvn javafx:run -s ../.mvn/settings.xml &
popd
- name: Run Go Client
run: |
pushd go
go test -v .
popd