name: ci-platform on: push: branches: [main, master, develop] paths: - "services/**" - "web/**" - "contracts/**" - ".github/workflows/ci-platform.yml" pull_request: branches: [main, master, develop] paths: - "services/**" - "web/**" - "contracts/**" - ".github/workflows/ci-platform.yml" jobs: maven-services: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v4 with: distribution: temurin java-version: "17" cache: maven - name: Forbid craftlabs-auth-bitanswer in platform tree run: | set -euo pipefail TREE=$(mvn -f services/pom.xml -q -DskipTests dependency:tree -pl delivery-platform-api,license-webhook-ingress -am) if echo "$TREE" | grep -q 'craftlabs-auth-bitanswer'; then echo "::error::Banned dependency craftlabs-auth-bitanswer found in platform dependency tree" echo "$TREE" exit 1 fi - name: Maven verify (platform services) run: mvn -f services/pom.xml -B verify web-ui-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v4 with: node-version: "20" - name: npm install and build working-directory: web/delivery-platform-ui run: | npm install npm run build