Skip to content

feat(customer-360): add Customer 360 use case #1

feat(customer-360): add Customer 360 use case

feat(customer-360): add Customer 360 use case #1

Workflow file for this run

name: Customer 360 CI
on:
push:
paths:
- customer-360/**
- .github/workflows/customer-360.yml
pull_request:
paths:
- customer-360/**
- .github/workflows/customer-360.yml
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
strategy:
fail-fast: false
matrix:
runner: [curl, java]
env:
ARCADEDB_URL: http://localhost:2480
ARCADEDB_USER: root
ARCADEDB_PASS: arcadedb
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- name: Set up Java
if: matrix.runner == 'java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven repository
if: matrix.runner == 'java'
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('customer-360/java/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Start ArcadeDB
working-directory: customer-360
run: docker compose up -d
- name: Setup database
working-directory: customer-360
run: ./setup.sh
- name: Run curl queries
if: matrix.runner == 'curl'
working-directory: customer-360
run: ./queries/queries.sh
- name: Build and run Java
if: matrix.runner == 'java'
working-directory: customer-360/java
run: |
mvn package --no-transfer-progress
java -jar target/customer-360.jar
- name: Teardown
if: always()
working-directory: customer-360
run: docker compose down