Skip to content

RR artifact and deployment for explorer #27

RR artifact and deployment for explorer

RR artifact and deployment for explorer #27

Workflow file for this run

name: Build and upload
on:
push:
branches: ["**"]
workflow_dispatch: {}
jobs:
concierge-graphql-gnm:
runs-on: ubuntu-latest
# The first two permissions are needed to interact with GitHub's OIDC Token endpoint.
# The second set of three permissions are needed to write test results back to GH
permissions:
id-token: write
contents: read
issues: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
cache: sbt
- name: Build and test
env:
SBT_JUNIT_OUTPUT: ./junit-tests
JAVA_OPTS: -Dsbt.log.noformat=true
run: |
sbt 'test;debian:packageBin'
- name: Store the built artifacts
uses: actions/upload-artifact@v4
with:
name: backend-deb
path: target/concierge-graphql_0.1.0_all.deb
retention-days: 5
compression-level: 0 #artifact is already compressed
riffraff-upload:
runs-on: ubuntu-latest
needs:
- concierge-graphql-gnm
- graphiql-explorer

Check failure on line 51 in .github/workflows/gnm-style.yml

View workflow run for this annotation

GitHub Actions / Build and upload

Invalid workflow file

The workflow is not valid. .github/workflows/gnm-style.yml (Line: 51, Col: 9): Job 'riffraff-upload' depends on unknown job 'graphiql-explorer'.
# The first two permissions are needed to interact with GitHub's OIDC Token endpoint.
# The second set of three permissions are needed to write test results back to GH
permissions:
id-token: write
contents: read
issues: read
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'yarn'
cache-dependency-path: cdk/yarn.lock
- run: yarn install --frozen-lockfile
name: Prepare for CDK infrastructure build
working-directory: cdk
- run: yarn test
name: Test CDK infrastructure integrity
working-directory: cdk
- run: yarn synth
name: Build infrastructure definition from CDK
working-directory: cdk
- uses: guardian/actions-riff-raff@v4
with:
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: ./riff-raff.yaml
projectName: Content Platforms::concierge-graphql-experimental
contentDirectories: |
concierge-graphql:
- artifacts/backend-deb/concierge-graphql_0.1.0_all.deb
graphiql-explorer:
- artifacts/explorer/build
cloudformation:
- cdk/cdk.out/ConciergeGraphql-PROD-AARDVARK.template.json
- cdk/cdk.out/ConciergeGraphql-CODE-AARDVARK.template.json
cloudformation-preview:
- cdk/cdk.out/ConciergeGraphql-preview-PROD-AARDVARK.template.json
- cdk/cdk.out/ConciergeGraphql-preview-CODE-AARDVARK.template.json
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always() #runs even if there is a test failure
with:
files: junit-tests/*.xml