-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9072d1f
commit 474d4c2
Showing
11 changed files
with
93 additions
and
1,671 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
name: Grid CI | ||
on: [pull_request] | ||
on: | ||
workflow_dispatch: # Manual invocation. | ||
push: | ||
jobs: | ||
JSBuild: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node-version: [16.20.0] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Kahuna | ||
working-directory: ./kahuna | ||
run: | | ||
npm ci | ||
npm test | ||
- name: Image Counter Lambda | ||
working-directory: ./image-counter-lambda | ||
run: | | ||
npm ci | ||
npm test | ||
- name: S3Watcher | ||
working-directory: ./s3watcher/lambda | ||
run: | | ||
npm ci | ||
npm run build | ||
#- name: Reaper | ||
# working-directory: ./reaper | ||
# run: | | ||
# npm install | ||
# npm run riffraff-artefact | ||
|
||
ScalaBuild: | ||
runs-on: ubuntu-20.04 | ||
CI: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required by aws-actions/configure-aws-credentials | ||
id-token: write | ||
contents: read | ||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2 | ||
|
@@ -57,12 +31,75 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 10 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: SBT | ||
uses: ./.github/actions/sbt | ||
env: | ||
USE_DOCKER_FOR_TESTS: false | ||
ES6_TEST_URL: http://elasticsearch:9200 | ||
LOCALSTACK_ENDPOINT: http://localstack:4566 | ||
with: | ||
args: clean compile test:compile test | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
- name: Kahuna (client-side) | ||
working-directory: ./kahuna | ||
run: | | ||
npm install-clean | ||
npm run undist | ||
npm test | ||
npm run dist | ||
- name: SBT | ||
uses: ./.github/actions/sbt | ||
env: | ||
USE_DOCKER_FOR_TESTS: false | ||
ES6_TEST_URL: http://elasticsearch:9200 | ||
LOCALSTACK_ENDPOINT: http://localstack:4566 | ||
with: | ||
args: clean compile test:compile test debian:packageBin | ||
- uses: aws-actions/configure-aws-credentials@v3 | ||
with: | ||
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | ||
aws-region: eu-west-1 | ||
- name: Image Counter Lambda | ||
working-directory: ./image-counter-lambda | ||
run: | | ||
npm install-clean | ||
npm test | ||
npm run compile | ||
- name: S3Watcher | ||
working-directory: ./s3watcher/lambda | ||
run: | | ||
npm install-clean | ||
npm test | ||
npm run build | ||
- uses: guardian/actions-riff-raff@v2 | ||
with: | ||
projectName: media-service::grid::all | ||
buildNumberOffset: 7565 | ||
configPath: riff-raff.yaml | ||
contentDirectories: | | ||
auth: | ||
- auth/target/auth.deb | ||
collections: | ||
- collections/target/collections.deb | ||
cropper: | ||
- cropper/target/cropper.deb | ||
image-loader-projection: | ||
- image-loader/target/image-loader.deb | ||
image-loader: | ||
- image-loader/target/image-loader.deb | ||
kahuna: | ||
- kahuna/target/kahuna.deb | ||
leases: | ||
- leases/target/leases.deb | ||
media-api: | ||
- media-api/target/media-api.deb | ||
metadata-editor: | ||
- metadata-editor/target/metadata-editor.deb | ||
thrall: | ||
- thrall/target/thrall.deb | ||
usage: | ||
- usage/target/usage.deb | ||
image-counter-lambda: | ||
- image-counter-lambda/dist/image-counter-lambda.zip | ||
s3watcher: | ||
- s3watcher/lambda/target/s3watcher.zip | ||
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.