chore(deps): AWS dependency updates #189
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: # required by aws-actions/configure-aws-credentials | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '11' | |
cache: 'sbt' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- name: CI | |
working-directory: cdk | |
run: | | |
yarn install --frozen-lockfile | |
yarn lint | |
yarn test | |
yarn synth | |
- name: AWS Auth | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
aws-region: eu-west-1 | |
- name: Build and Test project, Assemble jar, copy to root dir | |
run: | | |
sbt clean compile test assembly | |
cp target/scala*/elastic-search-monitor.jar ./elastic-search-monitor.jar | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v2 | |
with: | |
configPath: cdk/cdk.out/riff-raff.yaml | |
projectName: elastic-search-monitor | |
buildNumberOffset: 99 | |
contentDirectories: | | |
elastic-search-monitor: | |
- elastic-search-monitor.jar | |
cdk.out: | |
- cdk/cdk.out/ElasticSearchMonitor-PROD.template.json |