Explicitly depend on @guardian/eslint-config #576
Workflow file for this run
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: | |
push: | |
jobs: | |
ci: | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: build API | |
run: | | |
npm run api::build | |
- name: build Client | |
run: | | |
npm run client::build | |
- name: Build output-handler | |
run: | | |
npm run output-handler::build | |
- name: Build worker-capacity-manager | |
run: | | |
npm run worker-capacity-manager::build | |
- name: Package API/Client/Update | |
run: | | |
npm run package | |
- name: Package Worker | |
run: | | |
npm run worker::build | |
npm run worker::package | |
- name: CDK synth | |
run: | | |
npm run cdk::build | |
npm run cdk::lint | |
npm run cdk::synth | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v4 | |
with: | |
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
configPath: packages/cdk/riff-raff.yaml | |
buildNumberOffset: 120 | |
projectName: investigations::transcription-service | |
contentDirectories: | | |
cdk.out: | |
- packages/cdk/cdk.out/TranscriptionService-CODE.template.json | |
- packages/cdk/cdk.out/TranscriptionService-PROD.template.json | |
transcription-service-api: | |
- target/api.zip | |
transcription-service-output-handler: | |
- target/output-handler.zip | |
transcription-service-worker-capacity-manager: | |
- target/worker-capacity-manager.zip | |
transcription-service-worker: | |
- packages/worker/dist/transcription-service-worker_1.0.0_all.deb | |
- name: Upload repository project to riff-raff | |
uses: guardian/actions-riff-raff@v4 | |
with: | |
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
configPath: packages/cdk/riff-raff-repository.yaml | |
projectName: investigations::transcription-service-repository | |
contentDirectories: | | |
cdk.out: | |
- packages/cdk/cdk.out/TranscriptionServiceRepository.template.json |