Skip to content

Commit c8379cc

Browse files
ShaunRixDefranikiwycherleyrkmudunurupwadmore-ea
authored
Release/2.0.0 (#44)
* NI-36 Cpx ldn (#40) * Update events * Update iam permissions * Revert changes * Update dependencies in package.json * Add husky pre-commit hook to run npm test * Update build status and quality metrics badges * test of commit and push button * Add validation tests for message event schemas * update to npm packages * Update README to reflect removal of Serverless * Update version number and engines * Feature| NI-39 removal of serverless and Huskey (#41) * https://eaflood.atlassian.net/browse/NI-39 * removal of husky * changed readme back as per comments --------- Co-authored-by: Rajesh M <[email protected]> Co-authored-by: pwadmore-ea <[email protected]> * Fix/sonarcloud coverage (#42) * Fix SonarCloud coverage https://eaflood.atlassian.net/browse/FSR-1378 * Fix SonarCloud coverage * docs: Add release notes for version 2.0.0 --------- Co-authored-by: Niki Wycherley <[email protected]> Co-authored-by: Rajesh M <[email protected]> Co-authored-by: pwadmore-ea <[email protected]>
1 parent aa727a3 commit c8379cc

File tree

9 files changed

+2219
-7712
lines changed

9 files changed

+2219
-7712
lines changed

.github/workflows/ci.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77

88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
1313

1414
- name: Install nodejs
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v3
1616
with:
1717
node-version: "18.x"
1818

@@ -22,19 +22,13 @@ jobs:
2222
- name: Run linting
2323
run: npm run lint
2424

25-
# This includes an extra run step. The sonarcloud analysis will be run in a docker container with the current
26-
# folder mounted as `/github/workspace`. The problem is when the lcov.info file is generated it will reference the
27-
# code in the current folder. So to enable sonarcloud to matchup code coverage with the files we use sed to update
28-
# the references in lcov.info
29-
# https://community.sonarsource.com/t/code-coverage-doesnt-work-with-github-action/16747/6
3025
- name: Run unit tests
3126
run: |
3227
npm run test-config
3328
npm run unit-test
34-
sed -i 's/\/home\/runner\/work\/cap-xml\/cap-xml\//\/github\/workspace\//g' coverage/lcov.info
3529
3630
- name: Analyse code quality
37-
uses: sonarsource/sonarcloud-github-action@master
31+
uses: sonarsource/sonarqube-scan-action@master
3832
env:
3933
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4034
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
node_modules
33
jspm_packages
44

5-
# Serverless directories
6-
.serverless
7-
85
#config
96
config/config.json
107

config/cap.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"bodyXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<alert xmlns=\"urn:oasis:names:tc:emergency:cap:1.2\">\r\n <identifier>4eb3b7350ab7aa443650fc9351f02940E</identifier>\r\n <sender>www.gov.uk/environment-agency</sender>\r\n <sent>2024-09-17:07:02-00:00</sent>\r\n <status>Actual</status>\r\n <msgType>Alert</msgType>\r\n <source>Flood warning service</source>\r\n <scope>Public</scope>\r\n <info>\r\n <language>en-GB</language>\r\n <category>Met</category>\r\n <event><![CDATA[TEST TEST TEST 064 Issue Flood Alert EA]]></event>\r\n <urgency>Immediate</urgency><expires>2024-09-20T12:00:02-00:00</expires><area><geocode><valueName>TargetAreaCode</valueName><value><![CDATA[TESTAREA1]]></value></geocode></area></info></alert>"
3+
}

docs/release-2.0.0.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# FWIS App Release - Thursday, 20th February 2025
2+
3+
## Information
4+
5+
This release updates CAP-XML to move from Serverless to Terraform.
6+
7+
## Branches
8+
The branch for this release is release/2.0.0
9+
10+
## Tickets
11+
12+
Tickets linked to the release in Jira: [https://eaflood.atlassian.net/projects/NI/versions/20438/tab/release-report-all-issues](https://eaflood.atlassian.net/projects/NI/versions/20438/tab/release-report-all-issues)
13+
14+
## Instructions
15+
16+
Execute jobs:
17+
18+
- `MIGRATION_CX_{stage}_02_DEPLOY_API_LAMBDA`
19+
- Modules to deploy: `api_gateways` and `lambda`
20+
21+
Confirm deployment with the flood dev and test team.

0 commit comments

Comments
 (0)