Skip to content

Merge pull request #86 from guardian/update/non_aws #150

Merge pull request #86 from guardian/update/non_aws

Merge pull request #86 from guardian/update/non_aws #150

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK and sbt
uses: guardian/setup-scala@v1
- 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
run: |
sbt compile test assembly
working-directory: ${{ github.workspace }}
- name: Copy jar to root
run: |
cp archive/target/scala-*/football-time-machine-archive.jar .
cp api/target/scala-*/football-time-machine-api.jar .
- uses: guardian/actions-riff-raff@v2
with:
configPath: riff-raff.yaml
projectName: football-time-machine
buildNumberOffset: 90
contentDirectories: |
football-time-machine-archive:
- football-time-machine-archive.jar
football-time-machine-api:
- football-time-machine-api.jar
football-time-machine:
- cfn.yaml