Merge pull request #94 from guardian/remove-democratic-national-conve… #114
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
# triggering CI default branch improves caching | |
# see https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
checks: write | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: corretto | |
java-version: 11 | |
cache: sbt | |
- name: Test | |
run: sbt -v +test | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Tests | |
path: target/test-reports/TEST-*.xml | |
reporter: java-junit | |
only-summary: 'false' | |
fail-on-error: 'true' | |
- uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: eu-west-1 | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v2 | |
with: | |
projectName: Mobile::cross-platform-navigation | |
buildNumberOffset: 196 | |
configPath: riff-raff.yaml | |
contentDirectories: | | |
json: | |
- json/ |