Fix for code scanning alert: Workflow does not contain permissions #174
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: Tests | |
| on: [push] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| java-version: ["11", "17", "21"] | |
| os: [ubuntu-latest, macOS-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Prepare java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "adopt" | |
| java-version: ${{ matrix.java-version }} | |
| - name: Setup Clojure | |
| uses: DeLaGuardo/setup-clojure@13.1 | |
| with: | |
| cli: latest | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run tests not Windows | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: clojure -X:test | |
| shell: bash | |
| - name: Run tests on Windows | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: clojure -X:test | |
| shell: powershell |