Skip to content

Create codeql.yml

Create codeql.yml #3

Workflow file for this run

name: Gradle tests using matrix
on:
pull_request:
branches: [ "main" ]
jobs:
changes:

Check failure on line 8 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Gradle tests using matrix

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 8, Col: 3): Error calling workflow 'Dankoy/jforwarder/.github/workflows/check-changes.yml@a4dc7866e7018c15d2ab03f52a199c367d7cb1f9'. The nested job 'changes' is requesting 'pull-requests: read', but is only allowed 'pull-requests: none'.
uses: ./.github/workflows/check-changes.yml
test:
needs: changes
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
# test only changed projects
projects: ${{ fromJSON(needs.changes.outputs.packages) }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: tests
run: gradle ${{ matrix.projects }}:clean ${{ matrix.projects }}:test