chore(deps): Non-AWS dependency updates #609
This file contains 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: | |
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: | |
contents: read | |
# These permissions are required by guardian/actions-riff-raff... | |
id-token: write # ...to exchange an OIDC JWT ID token for AWS credentials | |
pull-requests: write #...to comment on PRs | |
steps: | |
- uses: actions/[email protected] | |
# Setup Node, checking common Node config files to determine the version of Node to use. | |
# Configuring caching is also recommended. | |
# See https://github.com/guardian/actions-setup-node | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: 'cdk/package-lock.json' | |
# See https://github.com/guardian/setup-java | |
- name: Setup Java and sbt | |
uses: guardian/setup-scala@v1 | |
- run: | | |
LAST_TEAMCITY_BUILD=1007 | |
echo "BUILD_NUMBER=$(( $GITHUB_RUN_NUMBER + $LAST_TEAMCITY_BUILD ))" >> $GITHUB_ENV | |
# See https://github.com/github/scripts-to-rule-them-all | |
- name: Run script/ci | |
run: ./script/ci | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v4 | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
buildNumber: ${{ env.BUILD_NUMBER }} | |
projectName: tools::amiable | |
configPath: cdk/cdk.out/riff-raff.yaml | |
contentDirectories: | | |
cdk.out: | |
- cdk/cdk.out | |
amiable: | |
- dist |