Update play-v30 to 16.1.0 #2102
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
| # Find full documentation here https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | |
| name: CI | |
| on: | |
| pull_request: | |
| # Manual invocation. | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write # required by guardian/actions-riff-raff | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up Java | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'corretto' | |
| cache: 'sbt' | |
| - name: Setup Node | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: 'cdk/package-lock.json' | |
| # This step creates an environment variable `BUILD_NUMBER`. | |
| # It is used by: | |
| # - The `script/ci` script | |
| # - The CDK infrastructure | |
| # - The `guardian/actions-riff-raff` GitHub Action | |
| - run: | | |
| LAST_TEAMCITY_BUILD=1265 | |
| echo "BUILD_NUMBER=$(( $GITHUB_RUN_NUMBER + $LAST_TEAMCITY_BUILD ))" >> $GITHUB_ENV | |
| - name: Run script/ci | |
| run: ./script/ci | |
| - uses: guardian/actions-riff-raff@d27cdac36b1f3932442f25f18775208f774a8405 # v4.2.3 | |
| with: | |
| projectName: security-hq | |
| roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
| buildNumber: ${{ env.BUILD_NUMBER }} | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| configPath: hq/conf/riff-raff.yaml | |
| contentDirectories: | | |
| security-hq-cfn: | |
| - cdk/cdk.out/security-hq.template.json | |
| security-hq: | |
| - dist | |
| # No point in links to a Code stage, as there isn't one | |
| commentingEnabled: false |