ci: reduce permission #370
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: Build | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| root: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js LTS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - name: Build | |
| run: make root | |
| web-app: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ["20.x", "22.x", "23.x"] | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Build | |
| run: make -C web-app | |
| api-app: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: ["21", "23"] | |
| # TODO Replace obsolete Java 23 with current Java 24 | |
| # Current Gradle does not support Java 24 | |
| # See https://docs.gradle.org/current/userguide/compatibility.html | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Use Java ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java-version }} | |
| - name: Build | |
| run: make -C api-app |