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 2022-06-27 #309

Merged
merged 28 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2388cf4
Add Yarn SDK for VSCode (#292)
JeremyKennedy Jun 13, 2022
10414bd
fix: updated latest design system lib and make change to footer and h…
alexunique0519 Jun 13, 2022
ef67878
feat: added default padding for the container
alexunique0519 Jun 14, 2022
e84b147
Merge pull request #293 from DTS-STN/update-header-footer-with-new-DS
alexunique0519 Jun 14, 2022
905d493
Finish up GitHub Actions workflow for Legal Values (#298)
JeremyKennedy Jun 15, 2022
12a93b7
fix: made all generated link have link style
alexunique0519 Jun 15, 2022
08adce4
fix: fixed overflowing text on intro page
alexunique0519 Jun 15, 2022
0f2d156
Merge pull request #301 from DTS-STN/SAEB-1312-Link
JeremyKennedy Jun 16, 2022
60e822d
add new radio question for oas deferral
JeremyKennedy Jun 14, 2022
18b26e0
add test for oas deferral
JeremyKennedy Jun 14, 2022
f23dbae
add helpText to radio
JeremyKennedy Jun 14, 2022
330ab8b
add oasDefer to openapi
JeremyKennedy Jun 14, 2022
29a558d
remove less-useful 'field-reqs' tests, clean up the remaining
JeremyKennedy Jun 14, 2022
5cde180
resolve last failing tests
JeremyKennedy Jun 14, 2022
1db3bbc
add oas deferral link
JeremyKennedy Jun 14, 2022
80dc170
add help text if already receiving oas
JeremyKennedy Jun 16, 2022
7dbdaa2
Merge pull request #300 from DTS-STN/feature/always_show_deferral
JeremyKennedy Jun 16, 2022
3f7c0f0
Update partner text on intro page (#303)
JeremyKennedy Jun 17, 2022
431620d
fix: fixed the screen size order in tailwind config (#304)
alexunique0519 Jun 20, 2022
489c1ff
auto-update legal values
actions-user Jun 14, 2022
e47cf2e
improve gis max income calcs to consider when partner receiving allow…
JeremyKennedy Jun 20, 2022
040bc88
add test for GIS max income when partner ALW
JeremyKennedy Jun 20, 2022
7934ed6
Merge pull request #297 from DTS-STN/legal-values-auto-update
JeremyKennedy Jun 20, 2022
6302ab3
Clean up linting and workflows (#299)
JeremyKennedy Jun 21, 2022
ac855db
Legal Values cleanup (#305)
JeremyKennedy Jun 21, 2022
1be7555
support when income is not known (#306)
JeremyKennedy Jun 21, 2022
ffdca9c
fix translation for INCOME_SINGLE_OR_COMBINED (#307)
JeremyKennedy Jun 22, 2022
e107572
Results page (#279)
MarcoGoC Jun 27, 2022
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
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "next"
"extends": ["next", "plugin:prettier/recommended"]
}
17 changes: 10 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ name: 'CodeQL'

on:
push:
branches: [main]
branches:
- main
- develop
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
branches:
- main
- develop
schedule:
- cron: '35 3 * * 6'

Expand All @@ -38,11 +41,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +70,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
83 changes: 50 additions & 33 deletions .github/workflows/run-scrapers.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,63 @@
name: Run scrapers
name: Legal values auto-update
on:
workflow_dispatch:
workflow_dispatch: # so we can run manually
schedule:
- cron: '0 0 * * *'
jobs:
build:
legal-values-auto-update:
runs-on: ubuntu-latest
steps:
- id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: DTS-STN
git_committer_email: dts-stn+actions@github.com
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3

## Signing with GPG won't work unless we create a "DTS Bot" GitHub account.
#- name: Setup GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v5
# with:
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
# git_user_signingkey: true
# git_commit_gpgsign: true
# git_committer_name: GitHub Actions
# git_committer_email: actions@github.com

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: corepack enable
- run: yarn install
# - run: git checkout -b legal-values-autoupdate
- run: yarn run run-scraper
# - run: echo test > utils/api/scrapers/output/test.json
# - uses: EndBug/add-and-commit@v9
# with:
# add: 'utils/api/scrapers/output/*.json'
# new_branch: legal-values-autoupdate
# committer_name: DTS-STN
# committer_email: dts-stn+actions@github.com
# - run: |
# git add 'utils/api/scrapers/output/*.json'
# git commit -S -m "update legal values"
# - run: git push -v --set-upstream origin legal-values-autoupdate
- uses: peter-evans/create-pull-request@v4
cache: 'yarn' # cache seems to not work until yarn is installed, so this might be futile

- name: Install Yarn
run: corepack enable

- name: Install dependencies
run: yarn install

- name: Run scraper
run: yarn run run-scraper

- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
commit-message: auto-update legal values
title: Auto-update legal values
body: This is created by a bot, please review.
branch: legal-values-autoupdate
body: |
This is created by a bot, please review and make any appropriate changes.

You will have to sign the bot's commit before merging, because it doesn't have permission to do so itself.

To do this, run the following commands:
```
git fetch
git switch legal-values-auto-update
git pull
git rebase --exec 'git commit -S --amend --no-edit' develop
git push --force
```
branch: legal-values-auto-update
base: develop
add-paths: |
utils/api/scrapers/output/*.json
committer: GitHub Actions <actions@github.com>
author: GitHub Actions <actions@github.com>
17 changes: 7 additions & 10 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
name: Lint and Test

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -16,25 +13,25 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🔔
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
cache: yarn

- name: Install
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Build
run: yarn run build

- name: Linting
- name: Lint
run: yarn run lint

- name: Run Unit Tests and Coverage 🧪
- name: Run Unit Tests and Coverage
run: yarn run test:ci

# - name: Extract branch name
Expand Down
94 changes: 85 additions & 9 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ node_modules/
coverage/
helmfile/
helm/
out/
yarn.lock
.pnp.cjs
.pnp.loader.mjs
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"recommendations": ["orta.vscode-jest"]
"recommendations": [
"orta.vscode-jest",
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"jest.jestCommandLine": "yarn test:coverage"
"jest.jestCommandLine": "yarn test:coverage",
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-3340e2eb10-8.zip
Binary file not shown.
Binary file not shown.
Loading