chore: Attempted rebase #622
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: server-side-build | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
# required by aws-actions/configure-aws-credentials | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: install Mallard dependencies | |
run: | | |
cd projects/Mallard | |
yarn set version 3.6.4 | |
yarn | |
- name: install common dependencies | |
run: | | |
cd projects/common | |
yarn | |
- name: install scripts dependencies | |
run: | | |
cd projects/scripts | |
yarn | |
- name: install crosswords-bundle dependencies | |
run: | | |
cd projects/crosswords-bundle | |
yarn set version 3.6.4 | |
yarn | |
- name: install archiver dependencies | |
run: | | |
cd projects/archiver | |
yarn | |
- name: install aws dependencies | |
run: | | |
cd projects/aws | |
yarn | |
- name: install backend dependencies | |
run: | | |
cd projects/backend | |
yarn | |
- name: Run yarn validate and yarn build at root | |
run: | | |
yarn validate | |
yarn build | |
env: | |
exclude: 'Mallard' | |
- name: Run yarn test | |
run: | | |
yarn test | |
env: | |
exclude: 'Mallard' | |
- name: Run script ci.sh to create zipfiles | |
run: | | |
./script/ci.sh | |
# Setup AWS credentials to enable uploading to S3 for Riff-Raff. | |
# See https://github.com/aws-actions/configure-aws-credentials | |
- name: Setup aws credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
aws-region: eu-west-1 | |
- name: Upload to riff-raff | |
uses: guardian/actions-riff-raff@v2 | |
with: | |
buildNumberOffset: 20986 | |
app: editions | |
projectName: editions | |
configPath: riff-raff.yaml | |
contentDirectories: | | |
cloudformation: | |
- projects/aws/cloudformation.yaml | |
editions-backend: | |
- zipfiles/editions-backend.zip | |
editions-archiver: | |
- zipfiles/editions-archiver.zip |