Skip to content

Commit 42b1a57

Browse files
committed
Code review
1 parent 3c58202 commit 42b1a57

10 files changed

+10
-16
lines changed

.github/workflows/checkstyle-skip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Check code style"
33
on:
44
pull_request:
55
paths:
6-
- 'docs/*'
6+
- 'docs/**'
77
- '**.md'
88
- 'library-and-framework-list*.json'
99

.github/workflows/checkstyle.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ name: "Check code style"
33
on:
44
pull_request:
55
paths-ignore:
6-
- 'docs/*'
6+
- 'docs/**'
77
- '**.md'
88
- 'library-and-framework-list*.json'
99

1010
jobs:
1111
checkstyle:
12-
if: github.repository == 'oracle/graalvm-reachability-metadata'
1312
name: "📋 Check style according to checkstyle.xml"
1413
runs-on: "ubuntu-22.04"
1514
timeout-minutes: 15

.github/workflows/create-scheduled-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212
jobs:
1313
get-changed-metadata:
1414
name: "📋 Get a list of changed metadata"
15+
if: github.repository == 'oracle/graalvm-reachability-metadata'
1516
runs-on: "ubuntu-22.04"
1617
timeout-minutes: 5
1718
outputs:

.github/workflows/library-and-framework-list-validation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
jobs:
99
validate-library-and-framework-list-json:
10-
if: github.repository == 'oracle/graalvm-reachability-metadata'
1110
name: "📋 Validate the JSON file"
1211
runs-on: "ubuntu-22.04"
1312
timeout-minutes: 5

.github/workflows/scan-docker-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
run: ./gradlew checkAllowedDockerImages --baseCommit=${{ github.event.pull_request.base.sha }} --newCommit=${{ github.event.pull_request.head.sha }}
3636

3737
- name: "🔎 Check all docker images"
38-
if: github.event_name != 'pull_request' && github.repository == 'oracle/graalvm-reachability-metadata'
38+
if: github.event_name == 'schedule' && github.repository == 'oracle/graalvm-reachability-metadata'
3939
run: ./gradlew checkAllowedDockerImages

.github/workflows/test-all-metadata.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
get-all-metadata:
17-
if: github.repository == 'oracle/graalvm-reachability-metadata'
17+
if: github.event_name == 'workflow_dispatch' || github.repository == 'oracle/graalvm-reachability-metadata'
1818
name: "📋 Get list of all supported libraries"
1919
runs-on: "ubuntu-22.04"
2020
timeout-minutes: 5
@@ -36,7 +36,6 @@ jobs:
3636
./gradlew generateMatrixBatchedCoordinates -Pbatches=16
3737
3838
test-all-metadata:
39-
if: github.repository == 'oracle/graalvm-reachability-metadata'
4039
name: "🧪 ${{ matrix.coordinates }} (GraalVM for JDK ${{ matrix.version }} @ ${{ matrix.os }})"
4140
runs-on: ${{ matrix.os }}
4241
timeout-minutes: 120
@@ -78,7 +77,6 @@ jobs:
7877
name: "🧪 All metadata tests have passed"
7978
runs-on: "ubuntu-22.04"
8079
timeout-minutes: 1
81-
if: ${{ always() }} && github.repository == 'oracle/graalvm-reachability-metadata'
8280
needs: test-all-metadata
8381
steps:
8482
- name: "All tests passed"

.github/workflows/test-changed-infrastructure.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ concurrency:
1717

1818
jobs:
1919
get-changed-infrastructure:
20-
if: github.repository == 'oracle/graalvm-reachability-metadata'
2120
name: "📋 Get a list of libraries to test for build-logic changes"
2221
runs-on: "ubuntu-22.04"
2322
timeout-minutes: 5
@@ -90,7 +89,6 @@ jobs:
9089
name: "🧪 All build-logic triggered tests have passed"
9190
runs-on: "ubuntu-22.04"
9291
timeout-minutes: 1
93-
if: ${{ always() }} && github.repository == 'oracle/graalvm-reachability-metadata'
9492
needs: test-changed-infrastructure
9593
steps:
9694
- name: "All tests passed"

.github/workflows/test-changed-metadata.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ on:
55
branches:
66
- master
77
paths:
8-
- 'metadata/*'
9-
- 'tests/src/*'
8+
- 'metadata/**'
9+
- 'tests/src/**'
1010

1111
concurrency:
1212
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
1313
cancel-in-progress: true
1414

1515
jobs:
1616
get-changed-metadata:
17-
if: github.repository == 'oracle/graalvm-reachability-metadata'
1817
name: "📋 Get a list of all changed libraries"
1918
runs-on: "ubuntu-22.04"
2019
timeout-minutes: 5
@@ -85,7 +84,6 @@ jobs:
8584
name: "🧪 All metadata tests have passed"
8685
runs-on: "ubuntu-22.04"
8786
timeout-minutes: 1
88-
if: ${{ always() }} && github.repository == 'oracle/graalvm-reachability-metadata'
8987
needs: test-changed-metadata
9088
steps:
9189
- name: "All tests passed"

.github/workflows/verify-new-library-version-compatibility.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616
jobs:
1717
get-all-libraries:
1818
name: "📋 Get list of all supported libraries with newer versions"
19+
# Opens PRs, with labels and assignees. Works only on the main repo.
1920
if: github.repository == 'oracle/graalvm-reachability-metadata'
2021
runs-on: ubuntu-22.04
2122
timeout-minutes: 5

docs/DEVELOPING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Always use the Gradle wrapper from the repository root:
1313

1414
Prerequisites for most commands:
1515
- `JAVA_HOME` should be set to JDK 21 or later. GraalVM is recommended to match CI.
16-
- Docker (required for pulling/using allowed images during tests).
17-
- [`grype`](https://github.com/anchore/grype) version 0.104.0 for scanning docker images:
16+
- Docker (required for pulling/using allowed images during tests). Needs to work without `sudo`: `sudo usermod -aG docker $USER; sudo reboot`.
17+
- [`grype`](https://github.com/anchore/grype) version `0.104.0` for scanning docker images:
1818
```console
1919
curl -sSfL https://get.anchore.io/grype/v0.104.0/install.sh | sudo sh -s -- -b /usr/local/bin
2020
```

0 commit comments

Comments
 (0)