|
95 | 95 | java-version: ${{ matrix.os.java.version }}
|
96 | 96 | distribution: temurin
|
97 | 97 | # https://github.com/actions/cache/blob/main/examples.md#java---maven
|
98 |
| - - name: Cache local Maven repository |
99 |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # 4.2.3 |
100 |
| - with: |
101 |
| - path: ~/.m2/repository |
102 |
| - # use a different key than workflows running in trusted mode |
103 |
| - key: ${{ github.event_name == 'push' && 'trusted' || 'untrusted' }}-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
104 |
| - restore-keys: | |
105 |
| - ${{ github.event_name == 'push' && 'trusted' || 'untrusted' }}-${{ runner.os }}-maven- |
106 | 98 | - name: Set up Maven
|
107 | 99 | run: ./mvnw -v
|
108 |
| - |
109 |
| - - name: Build code and run tests and basic checks (Standalone) |
110 |
| - run: | |
111 |
| - ./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean install \ |
112 |
| - -Pjqassistant -Pdist |
113 |
| - env: |
114 |
| - DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}" |
115 |
| - DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}" |
116 |
| - # For jobs running on 'pull_request', upload build scan data. |
117 |
| - # The actual publishing must be done in a separate job (see ci-report.yml). |
118 |
| - # We don't write to the remote cache as that would be unsafe. |
119 |
| - - name: Upload GitHub Actions artifact for the Develocity build scan |
120 |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2 |
121 |
| - if: "${{ github.event_name == 'pull_request' && !cancelled() }}" |
122 |
| - with: |
123 |
| - name: build-scan-data-standalone-${{ matrix.os.name }} |
124 |
| - path: ~/.m2/.develocity/build-scan-data |
125 |
| - |
126 |
| - - name: Run TCK tests in container mode |
127 |
| - run: | |
128 |
| - ./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean verify \ |
129 |
| - -Pjqassistant -Pskip-checks \ |
130 |
| - -am -pl :hibernate-validator-tck-runner \ |
131 |
| - -Dincontainer -Dincontainer-prepared |
132 |
| - env: |
133 |
| - DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}" |
134 |
| - DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}" |
135 |
| - |
136 |
| - - name: Upload GitHub Actions artifact for the Develocity build scan |
137 |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2 |
138 |
| - if: "${{ github.event_name == 'pull_request' && !cancelled() }}" |
139 |
| - with: |
140 |
| - name: build-scan-data-incontainer-${{ matrix.os.name }} |
141 |
| - path: ~/.m2/.develocity/build-scan-data |
142 |
| - |
143 |
| - - name: Omit produced artifacts from build cache |
144 |
| - run: rm -r ~/.m2/repository/org/hibernate/validator |
0 commit comments