Skip to content

Commit

Permalink
Merge pull request #5 from guardian/an/server
Browse files Browse the repository at this point in the history
Initial set up for a wires UI/API server
  • Loading branch information
andrew-nowak authored Sep 5, 2024
2 parents 2451d6d + 226c970 commit 0106d0e
Show file tree
Hide file tree
Showing 46 changed files with 9,177 additions and 547 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
cache-dependency-path: "./package-lock.json"
node-version-file: ".nvmrc"

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version-file: ".java-version"
distribution: "corretto"
cache: "sbt"

- name: Lint and test
run: |
npm ci
Expand All @@ -49,6 +56,17 @@ jobs:
npm run build
zip -FSjr "dist/ingestion-lambda.zip" "dist/handler.js"
- name: Build Newswires app and UI
working-directory: newswires
run: |
pushd client
npm ci
npm run lint:ci
npm run format:ci
popd
sbt clean scalafmtCheckAll compile test Debian/packageBin normalisePackageName
- name: Upload to Riff-Raff
uses: guardian/actions-riff-raff@v4
with:
Expand All @@ -61,3 +79,5 @@ jobs:
- cdk/cdk.out
ingestion-lambda:
- ingestion-lambda/dist/ingestion-lambda.zip
wires-feeds:
- newswires/target/newswires.deb
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.d.ts
node_modules
dist
.idea

.idea

# CDK asset staging directory
.cdk.staging
cdk.out
cdk.out

*.tsbuildinfo
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17
4 changes: 4 additions & 0 deletions cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ new WiresFeeds(app, 'WiresFeeds-CODE', {
env,
stack,
stage: 'CODE',
domainName: 'newswires.code.dev-gutools.co.uk',
enableMonitoring: false,
});
new WiresFeeds(app, 'WiresFeeds-PROD', {
env,
stack,
stage: 'PROD',
domainName: 'newswires.gutools.co.uk',
enableMonitoring: true,
});
Loading

0 comments on commit 0106d0e

Please sign in to comment.