name: PR on: pull_request: branches: [ master, main ] permissions: contents: read jobs: build: runs-on: ubuntu-latest services: flagd: image: ghcr.io/open-feature/flagd-testbed:latest ports: - 8013:8013 steps: - name: Check out the code uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - name: Set up JDK 8 uses: actions/setup-java@3617c43588448d532250f5c331dffcca90e398f1 with: java-version: '8' distribution: 'temurin' cache: maven - name: Initialize CodeQL uses: github/codeql-action/init@3d392940475e4c472e143ff2fd41aaffb1178094 with: languages: java - name: Cache local Maven repository uses: actions/cache@a3f5edc2378b2e43203912210dc88effa160f032 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Build with Maven run: mvn --batch-mode --update-snapshots verify # -P integration-test - add this back once we have a compatible flagd - name: Upload coverage to Codecov uses: codecov/codecov-action@e0fbd592d323cb2991fb586fdd260734fcb41fcb with: flags: unittests # optional name: coverage # optional fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@3d392940475e4c472e143ff2fd41aaffb1178094