Add trusted-types and require-trusted-types-for CSP directives #78
Workflow file for this run
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: Java CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre: | |
| name: Prerequisites | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Enforce CLA signature | |
| env: | |
| COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} | |
| run: curl https://raw.githubusercontent.com/shapesecurity/CLA/HEAD/cla-check.sh | bash | |
| build: | |
| name: Build | |
| needs: pre | |
| if: | | |
| !cancelled() && !failure() | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: [11] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup Java | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'adopt' | |
| java-version: ${{ matrix.java }} | |
| cache: 'maven' | |
| - name: CI | |
| run: | | |
| java -Xmx32m -version | |
| javac -J-Xmx32m -version | |
| mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | |
| mvn test -B | |
| - run: node --test | |
| demo-site-lint: | |
| if: | | |
| !cancelled() && !failure() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| working-directory: ./demo-site | |
| run: npm install | |
| - name: Lint | |
| working-directory: ./demo-site | |
| run: npm run lint | |