Skip to content

Commit e0d572e

Browse files
CHAL-99 Upgrade Next.js Version (#78)
* CHAL-48 #update Added wiki Home page (#73) * Welcome file.md created from https://stackedit.io/ * How to set up your development environment.md created from https://stackedit.io/ * Common variables.md created from https://stackedit.io/ * Home.md created from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Home.md updated from https://stackedit.io/ * Added Main Page to wiki. * Added development environment setup * Delete CONTRIBUTING.md * Delete Common variables.md * Delete Home.md * Delete How to set up your development environment.md * Delete STYLE_GUIDE.md * Delete doc_base.txt * Delete Welcome file.md * Update Home.md made requested changes from PR #73 * Updated and renamed file added details specified in PR #73 * Update Getting Started.md * Added Links and other change specified Added a break to Line 6 and added a few links to the bottom of the page * Update Home.md Added table of contents * Update Home.md Rearranged table of contents, external links * Changed Getting Started.md file for updated version provided * Deleted old Getting Started file * CHAL-99 #done Upgrade Next.js Version (#77) * upgraded next.js, executed npm audit fix, added react-confetti, supressed irrelevant warnings in test environment * upgraded jest version, fixed failing tests * removed dependency on node 18 from github actions test workflow, restored test coverage to 100% * removed lockfile and reinstalled packages * regenerated lockfile * diagnosing breaking tests in CI * updated node version to latest in test workflow * attempting to resolve failure of tests in ci environment * testing without overrides * attempting to resolve glob issue --------- Co-authored-by: Phillip D <89946282+CaptainExtremis@users.noreply.github.com>
1 parent d9d9fa8 commit e0d572e

File tree

62 files changed

+4891
-3119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4891
-3119
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish to Wiki
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
concurrency:
9+
group: wiki
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
wiki:
17+
name: Publish to Wiki
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Source
21+
uses: actions/checkout@v4
22+
with:
23+
repository: ${{github.repository}}
24+
path: ${{github.repository}}
25+
26+
- name: Checkout Wiki
27+
uses: actions/checkout@v4
28+
with:
29+
repository: ${{github.repository}}.wiki
30+
path: ${{github.repository}}.wiki
31+
32+
- name: Push to Wiki
33+
run: |
34+
set -e
35+
find "$GITHUB_WORKSPACE/${{github.repository}}.wiki" -name "*.md" -delete
36+
cd $GITHUB_WORKSPACE/${{github.repository}}.wiki
37+
cp -r $GITHUB_WORKSPACE/${{github.repository}}/wiki/* .
38+
git config --local user.email "action@github.com"
39+
git config --local user.name "GitHub Action"
40+
git add .
41+
git diff-index --quiet HEAD || git commit -m "update wiki" && git push

.github/workflows/run-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: '18.x'
33+
version: latest
3434
- uses: supabase/setup-cli@v1
3535
with:
3636
version: latest

CONTRIBUTING.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

STYLE_GUIDE.md

Lines changed: 0 additions & 192 deletions
This file was deleted.

jest-setup.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
/*
2-
Hides warning messages due to multiple Supabase clients being created for tests.
3-
Supabase prints a warning message to the console because multiple Supabase
4-
clients existing in the same browser context could result in unexpected
5-
behavior. Multiple Supabase clients is often a necessity for testing, so this
6-
warning message is hidden.
2+
Hide warning messages that are irrelevant to the testing environment, re:
3+
4+
- The creation of multiple Supabase clients. Supabase prints a warning message
5+
to the console because the existence of multiple Supabase clients in the
6+
same browsing context could result in unexpected behavior.
7+
8+
- Google Analytics not initialized.
79
*/
810
const { warn } = console;
911

1012
const actualWarn = (message, ...optionalParams) => {
1113
warn.call(console, message, ...optionalParams);
1214
};
1315

16+
const warningsToIgnore = [
17+
'Multiple GoTrueClient instances detected in the same browser context.',
18+
'@next/third-parties: GA has not been initialized',
19+
];
20+
1421
console.warn = (message, ...optionalParams) => {
15-
if (
16-
message &&
17-
message.includes(
18-
'Multiple GoTrueClient instances detected in the same browser context.',
19-
)
20-
) {
22+
if (message && warningsToIgnore.some(warning => message.includes(warning))) {
2123
return;
2224
}
2325

0 commit comments

Comments
 (0)