Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.0.0 #44

Merged
merged 3 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install nodejs
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "18.x"

Expand All @@ -22,19 +22,13 @@ jobs:
- name: Run linting
run: npm run lint

# This includes an extra run step. The sonarcloud analysis will be run in a docker container with the current
# folder mounted as `/github/workspace`. The problem is when the lcov.info file is generated it will reference the
# code in the current folder. So to enable sonarcloud to matchup code coverage with the files we use sed to update
# the references in lcov.info
# https://community.sonarsource.com/t/code-coverage-doesnt-work-with-github-action/16747/6
- name: Run unit tests
run: |
npm run test-config
npm run unit-test
sed -i 's/\/home\/runner\/work\/cap-xml\/cap-xml\//\/github\/workspace\//g' coverage/lcov.info

- name: Analyse code quality
uses: sonarsource/sonarcloud-github-action@master
uses: sonarsource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
node_modules
jspm_packages

# Serverless directories
.serverless

#config
config/config.json

Expand Down
3 changes: 3 additions & 0 deletions config/cap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"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>"
}
21 changes: 21 additions & 0 deletions docs/release-2.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# FWIS App Release - Thursday, 20th February 2025

## Information

This release updates CAP-XML to move from Serverless to Terraform.

## Branches
The branch for this release is release/2.0.0

## Tickets

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)

## Instructions

Execute jobs:

- `MIGRATION_CX_{stage}_02_DEPLOY_API_LAMBDA`
- Modules to deploy: `api_gateways` and `lambda`

Confirm deployment with the flood dev and test team.
Loading
Loading