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

v0.6.0.beta.1 (Sprint 37) #1657

Merged
merged 192 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
45c807e
PXBF-1511-error-count: include error count with error heading
scottqueen-bixal Jun 27, 2024
ffd0ca4
PXBF-1511-error-count: include prefix and suffix heading to wrap arou…
scottqueen-bixal Jun 27, 2024
d66df12
PXBF-1511-error-count: updated snapshots
scottqueen-bixal Jun 27, 2024
b053717
PXBF-1511-error-count: remove required and rely on invalid determinat…
scottqueen-bixal Jun 28, 2024
9ad0b9c
PXBF-1511-error-count: pass new heading object and error count for co…
scottqueen-bixal Jun 28, 2024
8462b9c
PXBF-1511-error-count: remove required and rely on invalid, no need f…
scottqueen-bixal Jun 28, 2024
cd1fff4
PXBF-1511-error-count: handle required and determin invalid at fields…
scottqueen-bixal Jun 28, 2024
7153055
PXBF-1511-error-count: simplify alert handling, by determining errors…
scottqueen-bixal Jun 28, 2024
e47181c
PXBF-1511-error-count: pass new async function to modal handler
scottqueen-bixal Jun 28, 2024
2361863
PXBF-1511-error-count: updated snapshots
scottqueen-bixal Jun 28, 2024
533f9d7
PXBF-1511-error-count: pass alert ref so we can focus it when the mod…
scottqueen-bixal Jun 28, 2024
f077676
PXBF-1513-inline-input-error-msg: include styles for outside left bor…
scottqueen-bixal Jul 2, 2024
12871a3
PXBF-1513-inline-input-error-msg: new error text for inline error mes…
scottqueen-bixal Jul 8, 2024
4f05d7f
PXBF-1513-inline-input-error-msg: include invalid and ui props with f…
scottqueen-bixal Jul 8, 2024
93edbd2
PXBF-1513-inline-input-error-msg: update stories to include an error …
scottqueen-bixal Jul 8, 2024
d7846d0
PXBF-1513-inline-input-error-msg: include new error snapshot for fiel…
scottqueen-bixal Jul 8, 2024
6f73e59
PXBF-1513-inline-input-error-msg: include error text prefix and suffi…
scottqueen-bixal Jul 8, 2024
a50b8f9
PXBF-1513-inline-input-error-msg: updated snapshot
scottqueen-bixal Jul 8, 2024
72bab65
PXBF-1513-inline-input-error-msg: update styles for error detail
scottqueen-bixal Jul 8, 2024
0501550
PXBF-1513-inline-input-error-msg: update proptype
scottqueen-bixal Jul 8, 2024
2d8fb92
PXBF-1513-inline-input-error-msg: Merge branch 'dev' of github.com:GS…
scottqueen-bixal Jul 11, 2024
904f892
PXBF-1542-benefit-finder-trait: add benefit finder trait
gchi25 Jul 22, 2024
3139bb8
update life event controller to use trait
gchi25 Jul 22, 2024
88376fc
PXBF-dev: Remove PR scans of thog when PRing to dev from local
Jul 24, 2024
0c382bc
PXBF-dev: Typo in WAF dev yml, validate step
Jul 25, 2024
34fe19b
PXBF-dev: Step WAF dev build to manual run for testing
Jul 25, 2024
8b371ee
PXBF-dev: Setting dev stuff back, checking main
Jul 25, 2024
0e18417
PXBF-dev: Setting dev stuff back, checking main 2
Jul 25, 2024
c273ea6
PXBF-dev: Setting dev stuff back, checking main 3
Jul 25, 2024
f1c3b7c
PXBF-dev: Setting dev stuff back, checking main 4
Jul 25, 2024
722cb1b
PXBF-dev: Setting dev stuff back, checking main 5
Jul 25, 2024
b96502f
PXBF-dev: Setting dev stuff back, checking main 6
Jul 25, 2024
3b03fdc
PXBF-dev: Setting dev stuff back, checking main 7
Jul 25, 2024
d104ccc
PXBF-dev: Setting dev stuff back, checking main 8
Jul 25, 2024
4c351a2
PXBF-dev: Setting dev stuff back, checking main 9
Jul 25, 2024
7c6f89c
PXBF-dev: Setting dev stuff back, checking main 10
Jul 25, 2024
1f42388
PXBF-dev: Setting dev stuff back, checking main 11
Jul 25, 2024
0bab19e
PXBF-dev: Setting dev stuff back, checking main 12
Jul 25, 2024
c19b0ae
PXBF-1601-git-hooks-bugs-pre-push: test js file
scottqueen-bixal Jul 26, 2024
0e109a8
PXBF-1601-git-hooks-bugs-pre-push: test js file
scottqueen-bixal Jul 26, 2024
31a55ec
PXBF-1601-git-hooks-bugs-pre-push: update prepush hook so it only run…
scottqueen-bixal Jul 26, 2024
c1cbc1e
PXBF-1601-git-hooks-bugs-pre-push: remove test files
scottqueen-bixal Jul 26, 2024
92bc7a0
PXBF-1513-inline-input-error-msg: Merge branch 'dev' of github.com:GS…
scottqueen-bixal Jul 26, 2024
5717310
PXBF-1513-inline-input-error-msg: remove mixed nesting
scottqueen-bixal Jul 26, 2024
a3f204b
PXBF-1513-inline-input-error-msg: pass error list to error banner
scottqueen-bixal Jul 26, 2024
f9020e5
PXBF-1513-inline-input-error-msg: reset margin on list
scottqueen-bixal Jul 26, 2024
3dccd15
PXBF-1513-inline-input-error-msg: pass error suffix and prefix to mem…
scottqueen-bixal Jul 26, 2024
34961eb
PXBF-1513-inline-input-error-msg: pass legend as data attribute
scottqueen-bixal Jul 26, 2024
312bdd0
PXBF-1513-inline-input-error-msg: adjust margin
scottqueen-bixal Jul 26, 2024
3fe920b
PXBF-1513-inline-input-error-msg: updated specs
scottqueen-bixal Jul 26, 2024
5ec6c52
PXBF-dev: Echo Issue Number
Jul 29, 2024
108ff12
PXBF-dev: Echo Project Number
Jul 29, 2024
98bac1b
PXBF-dev: Echo Project Number 2
Jul 29, 2024
6b0489a
PXBF-dev: Echo Project Number 3
Jul 29, 2024
ae6eef5
PXBF-dev: Echo Project Number 4
Jul 29, 2024
d2ce254
PXBF-dev: Echo Project Number 5
Jul 29, 2024
f33269c
PXBF-dev: Echo Project Number 6
Jul 29, 2024
d358c0a
PXBF-dev: Echo Project Number 7
Jul 29, 2024
5a2c803
PXBF-dev: Echo Project Number 8
Jul 29, 2024
ae214be
PXBF-dev: Echo Project Number 9
Jul 29, 2024
93b7d23
PXBF-dev: Echo Project Number 10
Jul 29, 2024
334a589
PXBF-dev: Echo Project Number 11
Jul 29, 2024
a7b3896
PXBF-1572-update-check-data-controller: update check data controller …
gchi25 Jul 29, 2024
4426560
Merge pull request #1613 from GSA/1601-git-hooks-bugs-pre-push
XavierMetichecchia Jul 29, 2024
080ba31
Merge pull request #1582 from GSA/1542-benefit-finder-trait
gchi25 Jul 29, 2024
a4cbb2b
Merge pull request #1589 from GSA/1571-update-life-event-controller
gchi25 Jul 29, 2024
92a6a8c
Merge pull request #1625 from GSA/1572-update-check-data-controller
gchi25 Jul 29, 2024
21185c3
PXBF-1513-inline-input-error-msg: remove log
scottqueen-bixal Jul 30, 2024
6394d87
PXBF-1513-inline-input-error-msg: pass parent legend to memorable dat…
scottqueen-bixal Jul 30, 2024
f48f534
PXBF-1513-inline-input-error-msg: updated snapshot
scottqueen-bixal Jul 30, 2024
63c040d
PXBF-1513-inline-input-error-msg: update to use aria-errormessage
scottqueen-bixal Jul 30, 2024
6a38f92
PXBF-dev: Update Docker Build and Deploy step to latest version, cach…
Jul 30, 2024
6342837
PXBF-dev: Comment out dev db backup step from main deploy
Jul 30, 2024
b5cef24
PXBF-1513-inline-input-error-msg: custom handling for date length
scottqueen-bixal Jul 31, 2024
6c25a71
PXBF-1513-inline-input-error-msg: updated snaps
scottqueen-bixal Jul 31, 2024
a7c548c
PXBF-1513-inline-input-error-msg: aria - invalid state for radios
scottqueen-bixal Jul 31, 2024
364d960
PXBF-1513-inline-input-error-msg: updated snapshots
scottqueen-bixal Jul 31, 2024
9f4df8d
PXBF-1513-inline-input-error-msg: reference year id
scottqueen-bixal Jul 31, 2024
2e28c60
PXBF-1513-inline-input-error-msg: handle fwd update
scottqueen-bixal Jul 31, 2024
868a673
PXBF-1513-inline-input-error-msg: updated es error message prefix
scottqueen-bixal Jul 31, 2024
98b9286
PXBF-1513-inline-input-error-msg: include logic for custom error over…
scottqueen-bixal Jul 31, 2024
a73695b
PXBF-1513-inline-input-error-msg: allow for full override of custom e…
scottqueen-bixal Jul 31, 2024
4e37c7d
PXBF-1513-inline-input-error-msg: Merge branch 'dev' of github.com:GS…
scottqueen-bixal Jul 31, 2024
5962740
PXBF-init-script: init init script
scottqueen-bixal Jul 31, 2024
df47689
PXBF-init-script: updated README
scottqueen-bixal Jul 31, 2024
3e66c4b
PXBF-1635-init-script: updated echos
scottqueen-bixal Jul 31, 2024
0203879
PXBF-1513-inline-input-error-msg: remove chain
scottqueen-bixal Jul 31, 2024
8a8939a
PXBF-1614-error-label: add error message field
gchi25 Jul 31, 2024
ca26aa2
PXBF-1614-error-label: add errorMessage in JSON data
gchi25 Jul 31, 2024
2f2392c
PXBF-dev: Extra Space in workflow for main waf
Aug 1, 2024
99137f8
PXBF-dev: Extra Space in workflow for main waf 2
Aug 1, 2024
325f0ef
PXBF-dev: Extra Space in workflow for main waf 3
Aug 1, 2024
23c7929
Merge pull request #1637 from GSA/1614-error-label
scottqueen-bixal Aug 1, 2024
5117017
PXBF-1513-inline-input-error-msg: add alert list objects, remove date…
scottqueen-bixal Aug 1, 2024
184603a
PXBF-1513-inline-input-error-msg: update tests for new error handling…
scottqueen-bixal Aug 1, 2024
e93b494
PXBF-1513-inline-input-error-msg: include data test attributes
scottqueen-bixal Aug 1, 2024
01e4fb8
PXBF-1513-inline-input-error-msg: chain handler back to promise resolve
scottqueen-bixal Aug 1, 2024
a6c4cbe
PXBF-1513-inline-input-error-msg: remove date alert class
scottqueen-bixal Aug 1, 2024
6266dc2
PXBF-1513-inline-input-error-msg: updated snaps
scottqueen-bixal Aug 1, 2024
f6ff003
PXBF-1513-inline-input-error-msg: modal tests are already in e2e
scottqueen-bixal Aug 1, 2024
913a223
PXBF-1513-error-data-event: new page submittion attempt custom data e…
scottqueen-bixal Aug 2, 2024
2ec2623
PXBF-1513-error-data-event: include page submit attempt event when al…
scottqueen-bixal Aug 2, 2024
2329f5b
PXBF-1513-error-data-event: include page submission event nul when st…
scottqueen-bixal Aug 2, 2024
3f783af
PXBF-1513-error-data-event: include page submission event when modal …
scottqueen-bixal Aug 2, 2024
f17f01f
PXBF-1513-error-data-event: include eligibility count in default stru…
scottqueen-bixal Aug 2, 2024
0484aeb
PXBF-1513-error-data-event: join ids for errors
scottqueen-bixal Aug 2, 2024
ec89998
PXBF-1513-error-data-event: update to prefix id with nested field ids…
scottqueen-bixal Aug 2, 2024
a1c0bf3
PXBF-1513-error-data-event: include id with updted snaps
scottqueen-bixal Aug 2, 2024
2833570
PXBF-1513-inline-input-error-msg: Merge branch 'dev' of github.com:GS…
scottqueen-bixal Aug 2, 2024
2509624
PXBF-1513-inline-input-error-msg: use data-errormessage to collect va…
scottqueen-bixal Aug 2, 2024
671f302
PXBF-1513-inline-input-error-msg: use aria-errormessage to reference …
scottqueen-bixal Aug 2, 2024
448f59c
PXBF-1513-inline-input-error-msg: pass mock id to spec
scottqueen-bixal Aug 2, 2024
db95cea
PXBF-1513-error-data-event: Merge branch '1513-inline-input-error-msg…
scottqueen-bixal Aug 2, 2024
bf98287
PXBF-1513-error-data-event: update page object id get structure
scottqueen-bixal Aug 2, 2024
3cc8ed0
PXBF-1513-error-data-event: include benefit submission form event
scottqueen-bixal Aug 2, 2024
fc2fb5f
PXBF-1513-error-data-event: update assertion id structure
scottqueen-bixal Aug 2, 2024
ae05eaf
PXBF-1513-error-data-event: update aria invalid id structure
scottqueen-bixal Aug 2, 2024
3c2e21d
PXBF-1513-error-data-event: update id on error list messages
scottqueen-bixal Aug 2, 2024
40bae44
PXBF-1641-allow-custom-branch-checkout-setup: split the param and the…
scottqueen-bixal Aug 2, 2024
7cb759e
PXBF-1641-allow-custom-branch-checkout-setup: move scope of branch va…
scottqueen-bixal Aug 2, 2024
5ddcadd
PXBF-dev: Integration Test 1
Aug 2, 2024
a30c932
PXBF-dev: Merge branch 'dev' of https://github.com/GSA/px-benefit-fin…
Aug 2, 2024
56a8ffa
PXBF-dev: Integration Test 2
Aug 2, 2024
e97a66d
PXBF-dev: Integration Test 3
Aug 2, 2024
3d9a9dd
PXBF-dev: Integration Test 4
Aug 2, 2024
1780751
PXBF-dev: Integration Test 5
Aug 2, 2024
ae10e2e
PXBF-dev: Integration Test 6
Aug 2, 2024
8388fa0
PXBF-dev: Integration Test 7
Aug 2, 2024
0ca5dde
PXBF-dev: Integration Test 8
Aug 2, 2024
12fb367
Merge pull request #1528 from GSA/1513-inline-input-error-msg
scottqueen-bixal Aug 2, 2024
cb61c94
Merge pull request #1640 from GSA/1513-error-data-event
scottqueen-bixal Aug 2, 2024
8d133af
PXBF-dev: Integration Test 9
Aug 5, 2024
1bd6545
PXBF-dev: Integration Test 10
Aug 5, 2024
1c245e8
PXBF-dev: Integration Test 11
Aug 5, 2024
f48eb48
PXBF-dev: Integration Test 12
Aug 5, 2024
bf06cd4
PXBF-1643-error-design-updates: wrap form heading group
scottqueen-bixal Aug 5, 2024
abe9840
PXBF-1643-error-design-updates: updated form heading group styles
scottqueen-bixal Aug 5, 2024
c1cad6d
PXBF-1643-error-design-updates: updated spec
scottqueen-bixal Aug 5, 2024
07e7793
PXBF-1643-error-design-updates: new gap size to allow for 20px
scottqueen-bixal Aug 5, 2024
b32bc3b
PXBF-dev: Integration Test 13
Aug 5, 2024
8c2a929
PXBF-1643-error-design-updates: update fieldset padding
scottqueen-bixal Aug 5, 2024
de2ef63
PXBF-dev: Integration Test 14
Aug 5, 2024
66c0430
PXBF-1643-error-design-updates: adjust memorable date padding and spaces
scottqueen-bixal Aug 5, 2024
dbb4ed1
PXBF-dev: Integration Test 15
Aug 5, 2024
7f8bd73
PXBF-dev: Integration Test 16
Aug 5, 2024
d2f41f8
PXBF-1643-error-design-updates: adjust padding in fieldset
scottqueen-bixal Aug 5, 2024
fba9dc5
PXBF-dev: Integration Test 17
Aug 5, 2024
eb09679
PXBF-1643-error-design-updates: include bf-radio class
scottqueen-bixal Aug 5, 2024
e501947
PXBF-1643-error-design-updates: adjust first of type spacing on radio…
scottqueen-bixal Aug 5, 2024
1d3fa1d
PXBF-dev: Integration Test 18
Aug 5, 2024
003909f
PXBF-dev: Integration Test 19
Aug 5, 2024
2e38f18
PXBF-dev: Integration Test 20
Aug 5, 2024
2d0abfb
PXBF-dev: Integration Test 21
Aug 5, 2024
655fe22
PXBF-dev: Integration Test 22
Aug 5, 2024
82346dd
PXBF-dev: Integration Test 23
Aug 5, 2024
2927177
PXBF-dev: Integration Test 24
Aug 6, 2024
e7c7fbb
PXBF-dev: Integration Test 25
Aug 6, 2024
80ec80c
PXBF-dev: Integration Test 26
Aug 6, 2024
8ccc8b9
PXBF-dev: Integration Test 27
Aug 6, 2024
b79cf0c
PXBF-1643-error-design-updates: remove absolute position of legend
scottqueen-bixal Aug 6, 2024
8808978
PXBF-1643-error-design-updates: we actually need radio styles
scottqueen-bixal Aug 6, 2024
0dbaef4
PXBF-1643-error-design-updates: new radio group component
scottqueen-bixal Aug 6, 2024
efb36bb
PXBF-1643-error-design-updates: include RadioGroup with default expor…
scottqueen-bixal Aug 6, 2024
05f6d3f
PXBF-1643-error-design-updates: wrap our fieldset for style sake
scottqueen-bixal Aug 6, 2024
58d1ff2
PXBF-1643-error-design-updates: include radio group
scottqueen-bixal Aug 6, 2024
7571bde
PXBF-1643-error-design-updates: updated snaps
scottqueen-bixal Aug 6, 2024
ee725dd
PXBF-dev: Integration Test 28
Aug 6, 2024
e9b5169
PXBF-1643-error-design-updates: remove comment
scottqueen-bixal Aug 6, 2024
1bdbaf2
PXBF-1643-error-design-updates: pass error message value for select data
scottqueen-bixal Aug 6, 2024
17dbef2
PXBF-1643-error-design-updates: pass error message values for radio
scottqueen-bixal Aug 6, 2024
2072842
PXBF-1643-error-design-updates: handle error message in fieldset
scottqueen-bixal Aug 6, 2024
41516e4
PXBF-1643-error-design-updates: update invalid elements, return to up…
scottqueen-bixal Aug 6, 2024
f9ed5d6
PXBF-1643-error-design-updates: remove console
scottqueen-bixal Aug 6, 2024
67d8794
PXBF-1643-error-design-updates: updated snaps
scottqueen-bixal Aug 6, 2024
f7ca907
PXBF-1643-error-design-updates: move radio group styles to its own index
scottqueen-bixal Aug 6, 2024
02f75da
PXBF-1643-error-design-updates: Merge branch 'dev' of github.com:GSA/…
scottqueen-bixal Aug 6, 2024
98bc750
PXBF-1635-init-script: remove pre-install command
scottqueen-bixal Aug 6, 2024
7eeed4c
PXBF-1635-init-script: Merge branch 'dev' of github.com:GSA/px-benefi…
scottqueen-bixal Aug 6, 2024
41e6483
Merge pull request #1636 from GSA/1635-init-script
scottqueen-bixal Aug 6, 2024
b1db256
Merge pull request #1642 from GSA/1641-allow-custom-branch-checkout-s…
scottqueen-bixal Aug 6, 2024
1517a09
Merge pull request #1647 from GSA/1643-error-design-updates
scottqueen-bixal Aug 6, 2024
9d9b148
PXBF-dev: updated package lock sinc install script was removed
scottqueen-bixal Aug 6, 2024
382e4ff
PXBF-1043-update-select-content: updated content for selects
scottqueen-bixal Aug 6, 2024
dd14f9a
PXBF-1043-update-select-content: updated snaps
scottqueen-bixal Aug 6, 2024
b417859
Merge pull request #1648 from GSA/1043-update-select-content
scottqueen-bixal Aug 6, 2024
4a18c5f
PXBF-1643-error-design-updates: include error handling for radios
scottqueen-bixal Aug 7, 2024
88af7bc
PXBF-1643-error-design-updates: move a few of our error handlers out …
scottqueen-bixal Aug 7, 2024
4b9e6c6
PXBF-1643-error-design-updates: export invalid field handler from utils
scottqueen-bixal Aug 7, 2024
fda2e3b
PXBF-1643-error-design-updates: comment code
scottqueen-bixal Aug 7, 2024
ade9af7
PXBF-1643-error-design-updates: always have to return a value in async
scottqueen-bixal Aug 7, 2024
c28e5dc
PXBF-1643-error-design-updates: move modal scroll lock to side effect
scottqueen-bixal Aug 7, 2024
5b5f86f
Merge pull request #1653 from GSA/1651-include-radiogroups-with-error…
scottqueen-bixal Aug 8, 2024
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
30 changes: 21 additions & 9 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
#!/bin/bash

# Function to get the full path of a command
get_command_path() {
command -v $1
}

## Set the root directory in the pipeline
ROOT_DIR=$(git rev-parse --show-toplevel)
CURRENT_DIR="${PWD##*/}"
JS_APP_DIR=benefit-finder

IS_JS_APP=false
COMMITTED_FILES=$(git diff --name-only HEAD~1..HEAD )

echo "Current directory ${CURRENT_DIR}"
echo $COMMITTED_FILES

# run custom actions for our JS App
for file in $COMMITTED_FILES; do
# Check file extension or content, or run a custom script
echo "Found committed file: $file"
# Check if file is located in the JS_APP_DIR
echo "Found staged file: $file"
if [[ $file == *$JS_APP_DIR* ]]; then
echo "running processes on committed files"
cd $ROOT_DIR/$JS_APP_DIR && CI=true npm run test:coverage
# check to see if process failed
IS_JS_APP=true
fi
done

# Run custom actions for our JS App
if [ $IS_JS_APP = true ]; then
echo "Found a JS application file, running front end task(s)"
cd $ROOT_DIR/$JS_APP_DIR && CI=true $(get_command_path npm) run test:coverage
if [ $? -eq 0 ]; then
echo "Process succeeded."
cd $ROOT_DIR
else
echo "Process failed."
exit 1
fi
fi
done
fi
82 changes: 41 additions & 41 deletions .github/workflows/build-and-deploy-dev-waf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Dev WAF

on:
schedule:
- cron: '0 5 * * 4'
- cron: "0 5 * * 4"

jobs:
checkVersion:
Expand All @@ -19,15 +19,15 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: source ./scripts/pipeline/cloud-gov-login.sh
- name: Check version
id: version
env:
PROJECT: '${{ secrets.PROJECT }}'
PROJECT: "${{ secrets.PROJECT }}"
run: |
ubuntu_version=${{ vars.UBUNTU_VERSION }}
modsecurity_nginx_version=${{ vars.MODSECURITY_NGINX_VERSION }}
Expand All @@ -54,44 +54,44 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BACKEND_SPACE: '${{ secrets.TF_BACKEND_SPACE }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
TF_BACKEND_SPACE: "${{ secrets.TF_BACKEND_SPACE }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
cf target -s "${TF_BACKEND_SPACE}" >/dev/null 2>&1
- name: Start Bastion
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
cf start "${TF_BASTION}" >/dev/null 2>&1
./scripts/pipeline/cloud-gov-wait-for-app-start.sh "${TF_BASTION}"
- name: Cloud.gov bastion git checkout
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
declare -a commands=("rm -rf px-benefit-finder" "git clone https://github.com/GSA/px-benefit-finder.git && cd px-benefit-finder && git checkout ${BRANCH}")
for command in "${commands[@]}"; do
./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "${command}" 1
done
- name: Build nginx WAF Plugin
env:
ubuntu_version: '${{ vars.UBUNTU_VERSION }}'
modsecurity_nginx_version: '${{ vars.MODSECURITY_NGINX_VERSION }}'
ubuntu_version: "${{ vars.UBUNTU_VERSION }}"
modsecurity_nginx_version: "${{ vars.MODSECURITY_NGINX_VERSION }}"
new_nginx_version: ${{ needs.checkVersion.outputs.new_nginx_version }}
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
source ./scripts/pipeline/terraform-build-waf-plugin.sh
- name: Configure Terraform
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
CWD=$(pwd)
cd terraform/infra
Expand All @@ -100,32 +100,32 @@ jobs:
cd "${CWD}"
- name: Terraform Init
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: init
run : ./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "tofu -chdir=px-benefit-finder/terraform/infra init" 1
run: ./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "tofu -chdir=px-benefit-finder/terraform/infra init" 1
- name: Terraform Validate
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: validate
run : |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh ${TF_BASTION} "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra validate -no-color" 1))
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh ${TF_BASTION} "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra validate -no-color" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
echo "stdout=${stdout}" >> $GITHUB_OUTPUT
- name: Terraform Plan
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: plan
run : |
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra plan -no-color" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
echo "stdout=${stdout}" >> $GITHUB_OUTPUT
- name: Terraform Apply
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: apply
run : |
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra apply -auto-approve" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
Expand All @@ -139,15 +139,15 @@ jobs:
title: "Update to NGINX v${{ needs.checkVersion.outputs.new_nginx_version }} (dev)"
body: |
## Automated update of NGINX WAF

This is an automated build and deploy of the NGINX WAF application in dev.

Build pack: ${{ needs.checkVersion.outputs.cloudgov_wf_version }} => ${{ needs.checkVersion.outputs.cloudgov_bp_version }}
NGINX: ${{ needs.checkVersion.outputs.current_nginx_version }} => ${{ needs.checkVersion.outputs.new_nginx_version }}

#### Terraform Initialization ⚙`${{ steps.init.outcome }}`
#### Terraform Validation 🤖`${{ steps.validate.outcome }}`

<details><summary>Validation Output</summary>

```
Expand Down Expand Up @@ -189,16 +189,16 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BACKEND_SPACE: '${{ secrets.TF_BACKEND_SPACE }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
TF_BACKEND_SPACE: "${{ secrets.TF_BACKEND_SPACE }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
cf target -s "${TF_BACKEND_SPACE}" >/dev/null 2>&1
- name: Stop Bastion
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
run: cf stop "${TF_BASTION}" >/dev/null 2>&1
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: cf stop "${TF_BASTION}" >/dev/null 2>&1
9 changes: 7 additions & 2 deletions .github/workflows/build-and-deploy-main-waf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: "0 5 * * 4"

# on:
# workflow_dispatch:
#
jobs:
checkVersion:
name: Check versions
Expand Down Expand Up @@ -136,7 +139,7 @@ jobs:
with:
token: ${{ secrets.ADD_TO_PROJECT_PAT }}
assignees: ${{ vars.TECH_LEAD }}
title: "Update to NGINX v${{ needs.checkVersion.outputs.new_nginx_version }} (main)"
title: "Update to NGINX ${{ needs.checkVersion.outputs.new_nginx_version }} (main)"
body: |
## Automated update of NGINX WAF

Expand Down Expand Up @@ -172,7 +175,9 @@ jobs:
GH_PROJECT_NUMBER: ${{ secrets.GH_PROJECT_NUMBER }}
GH_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
ISSUE_NUMBER: ${{ steps.issue.outputs.number }}
run: source ./scripts/pipeline/github-update-issue-status.sh
run: |
source ./scripts/pipeline/github-update-issue-status.sh

stopBastion:
name: Stop Bastion
runs-on: ubuntu-latest
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ jobs:
run: |
COMPOSER_DIR=$(composer -n config --global home)
$COMPOSER_DIR/vendor/bin/phpcs --standard=./usagov-2021/.phpcs.xml.dist -v --warning-severity=0 ./usagov_benefit_finder # | tee /tmp/results/php-cs.log
backup-database-dev:
needs: php-lint
uses: ./.github/workflows/database-backup-dev.yml
if: github.ref == 'refs/heads/dev'
secrets: inherit
# backup-database-dev:
# needs: php-lint
# uses: ./.github/workflows/database-backup-dev.yml
# if: github.ref == 'refs/heads/dev'
# secrets: inherit
backup-database-main:
needs: php-lint
uses: ./.github/workflows/database-backup-main.yml
if: github.ref == 'refs/heads/main'
secrets: inherit
component-library:
needs: [backup-database-dev, backup-database-main]
# needs: [backup-database-dev, backup-database-main]
needs: [backup-database-main]
if: always() && contains(needs.*.result, 'success') && !contains(needs.*.result, 'failure')
name: Build and deploy component library
runs-on: ubuntu-latest
Expand Down Expand Up @@ -112,7 +113,8 @@ jobs:
echo "${{ secrets.STORYBOOK_USERNAME }}:${{ secrets.STORYBOOK_PASSWORD }}" > Staticfile.auth
cf push benefit-finder-storybook-${BRANCH}
build-and-deploy:
needs: [backup-database-dev, backup-database-main]
# needs: [backup-database-dev, backup-database-main]
needs: [backup-database-main]
if: always() && contains(needs.*.result, 'success') && !contains(needs.*.result, 'failure')
name: Build and deploy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,7 +172,8 @@ jobs:
tags: |
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
- name: Build and push Docker image
uses: docker/[email protected]
# uses: docker/[email protected]
uses: docker/[email protected]
with:
context: ./usagov-2021
file: ./usagov-2021/Dockerfile-cms
Expand Down
Loading
Loading