Merge pull request #1345 from guardian/update/non_aws #325
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: Football | |
on: | |
push: | |
paths: | |
- football/** | |
- api-models/** | |
- project/** | |
- build.sbt | |
- .github/workflows/football.yml | |
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 | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK and sbt | |
uses: guardian/setup-scala@v1 | |
- 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 "project api-models" "compile" "test" "project football" "compile" "test" "assembly" | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Tests | |
path: football/target/test-reports/TEST-*.xml | |
reporter: java-junit | |
only-summary: 'false' | |
fail-on-error: 'true' | |
- name: Copy jar to root | |
run: cp football/target/scala-*/football.jar . | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v4 | |
with: | |
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
projectName: mobile-n10n:football | |
buildNumberOffset: 4147 | |
configPath: football/riff-raff.yaml | |
contentDirectories: | | |
football: | |
- football.jar | |
mobile-notifications-football-cfn: | |
- football/cfn.yaml |