Skip to content

Migrate build to GitHub actions #2

Migrate build to GitHub actions

Migrate build to GitHub actions #2

Workflow file for this run

name: Notification
on:
push:
branches:
- "**"
paths:
- notification/**
- common/**
- commonscheduleddynamodb/**
- .github/workflows/notification.yml
pull_request:
workflow_dispatch:
# allow queued workflows to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
cache: sbt
java-version: 11
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
- name: Compile, test and assembly
run: sbt compile test notification/assembly
- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:notification
configPath: notification/conf/riff-raff.yaml
contentDirectories: |
notification:
- notification/target/scala-2.13/notification.jar
notification-cfn:
- notification/conf/notification.yaml