name: Build & Check
on: [pull_request]
jobs:
  check:
    name: Run Gradle checks
    runs-on: ubuntu-20.04
    timeout-minutes: 10
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up JDK
        uses: actions/setup-java@v1
        with:
          java-version: '17'
      - name: Run checks
        run: ./gradlew clean check --rerun-tasks
      - name: Generate coverage report
        run: ./gradlew jacocoTestReport
      - name: Archive code coverage results
        uses: actions/upload-artifact@v3
        with:
          name: code-coverage-report
          path: server/build/reports/jacoco/test/html/
  integration-tests:
    name: Run integration tests
    runs-on: ubuntu-20.04
    timeout-minutes: 10
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up JDK
        uses: actions/setup-java@v1
        with:
          java-version: '17'
      - name: Run checks
        run: ./gradlew clean integrationTest --rerun-tasks -Dbenchmark.requests.total=100000
name: Build & Check
on: [pull_request]
jobs:
  check:
    name: Run Gradle checks
    runs-on: ubuntu-20.04
    timeout-minutes: 10
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up JDK
        uses: actions/setup-java@v1
        with:
          java-version: '17'
      - name: Run checks
        run: ./gradlew clean check --rerun-tasks
      - name: Generate coverage report
        run: ./gradlew jacocoTestReport
      - name: Archive code coverage results
        uses: actions/upload-artifact@v3
        with:
          name: code-coverage-report
          path: server/build/reports/jacoco/test/html/
  integration-tests:
    name: Run integration tests
    runs-on: ubuntu-20.04
    timeout-minutes: 10
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up JDK
        uses: actions/setup-java@v1
        with:
          java-version: '17'
      - name: Run checks
        run: ./gradlew clean integrationTest --rerun-tasks -Dbenchmark.requests.total=10000
Reduce number of requests for integration test benchmark
Reduce number of requests for integration test benchmark
