feat: provider wrapper to support state race fix #5659
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR | |
| on: | |
| pull_request: | |
| branches: [ master, main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| build: | |
| - java: 17 | |
| profile: codequality | |
| - java: 11 | |
| profile: java11 | |
| name: with Java ${{ matrix.build.java }} | |
| runs-on: ${{ matrix.os}} | |
| steps: | |
| - name: Check out the code | |
| uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Set up JDK ${{ matrix.build.java }} | |
| uses: actions/setup-java@1d018f9b8b9b505bb578a83b230fabcce01af93b | |
| with: | |
| java-version: ${{ matrix.build.java }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@5cb13d6ab8fe2074c40917e54a74e3d63b9927b4 | |
| with: | |
| languages: java | |
| - name: Cache local Maven repository | |
| uses: actions/cache@565629816435f6c0b50676926c9b05c254113c0c | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}${{ matrix.build.java }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}${{ matrix.build.java }}-maven- | |
| - name: Verify with Maven | |
| run: mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} verify | |
| - if: matrix.build.java == '17' | |
| name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
| 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@5cb13d6ab8fe2074c40917e54a74e3d63b9927b4 |