name: Repository verification on: pull_request: push: branches: [master, main] permissions: contents: read concurrency: group: verify-${{ github.ref }} cancel-in-progress: true jobs: backend: runs-on: ubuntu-latest timeout-minutes: 20 services: postgres: image: postgres:15.18 env: POSTGRES_USER: moyi_role_test POSTGRES_DB: moyi_ci_test POSTGRES_HOST_AUTH_METHOD: trust ports: ['5432:5432'] options: >- --health-cmd "pg_isready -U moyi_role_test -d moyi_ci_test" --health-interval 5s --health-timeout 5s --health-retries 10 redis: image: redis:7.4-alpine ports: ['6380:6379'] options: >- --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 10 env: MOYI_AUTH_TEST_JDBC_URL: jdbc:postgresql://127.0.0.1:5432/moyi_ci_test MOYI_GATEWAY_TEST_REDIS_PORT: '6380' steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4 with: distribution: temurin java-version: '21' cache: maven - run: mvn -B -ntp -f control-plane-java/pom.xml clean verify - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 if: failure() with: name: backend-test-results path: control-plane-java/target/surefire-reports/ frontend: runs-on: ubuntu-latest timeout-minutes: 10 defaults: run: working-directory: prototype steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: '9' - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: '22' cache: pnpm cache-dependency-path: prototype/pnpm-lock.yaml - run: pnpm install --frozen-lockfile - run: pnpm run build - run: pnpm test