generated from DTS-STN/next-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from DTS-STN/develop
Release 2022-06-27
- Loading branch information
Showing
96 changed files
with
3,025 additions
and
1,804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "next" | ||
"extends": ["next", "plugin:prettier/recommended"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [email protected] | ||
- 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: [email protected] | ||
|
||
- 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: [email protected] | ||
# - 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 <[email protected]> | ||
author: GitHub Actions <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ node_modules/ | |
coverage/ | ||
helmfile/ | ||
helm/ | ||
out/ | ||
yarn.lock | ||
.pnp.cjs | ||
.pnp.loader.mjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 removed
BIN
-146 KB
.yarn/cache/@dts-stn-decd-design-system-https-cb4ea9b315-bd4a148c2d.zip
Binary file not shown.
Binary file added
BIN
+146 KB
.yarn/cache/@dts-stn-decd-design-system-npm-1.40.0-7abdd78163-b1a9345604.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.95 KB
.yarn/cache/eslint-config-prettier-npm-8.5.0-a1dd58b6d8-0d0f5c32e7.zip
Binary file not shown.
Binary file added
BIN
+16.2 KB
.yarn/cache/eslint-plugin-prettier-npm-4.0.0-e632552861-03d69177a3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.93 KB
.yarn/cache/prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip
Binary file not shown.
Oops, something went wrong.
a98284c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
canadian-old-age-benefits-estimator – ./
eligibility-estimator-dev.vercel.app
canadian-old-age-benefits-estimator-eligibility-estimator.vercel.app
canadian-old-age-benefits-estimator.vercel.app
coabe.vercel.app
eligibility-estimator.vercel.app
canadian-old-age-benefits-esti-git-0abff3-eligibility-estimator.vercel.app