Skip to content

Commit

Permalink
Jeromehardaway/add GitHub login (#636)
Browse files Browse the repository at this point in the history
* add updated login

* adding auth folder

* made sure that next-auth and types/next-auth was installed

* login works

* fixed the colors to use tailwind.config

* fix user typescript issue

* types issues fixed

* address errors on login and _app files

* fixed next/app prettier error

* made recommeneded fixes for types in login and _app

* fix prettier code

* fixing the errors

* added eslint rule; and ran prettier
  • Loading branch information
jeromehardaway authored Nov 24, 2024
1 parent 9ed9a9e commit f6b398f
Show file tree
Hide file tree
Showing 240 changed files with 9,061 additions and 27,284 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
name: Playwright Tests

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# This path is platform dependent; use **/node_modules for Windows
path: |
node_modules
**/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Cache Playwright Browsers
uses: actions/cache@v2
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
test:
timeout-minutes: 60
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# This path is platform dependent; use **/node_modules for Windows
path: |
node_modules
**/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn

- name: Cache Playwright Browsers
uses: actions/cache@v2
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
7 changes: 4 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"endOfLine": "lf",
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"tabWidth": 4,
"trailingComma": "es5"
"semi": true,
"printWidth": 100,
"endOfLine": "lf"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ Curious about upcoming features? Check our [Roadmap](https://github.com/orgs/Vet
## License :scroll:
This project is under the MIT License - see the [License](https://github.com/Vets-Who-Code/vwc-site/blob/master/LICENSE) for more details.
This project is under the MIT License - see the [License](https://github.com/Vets-Who-Code/vwc-site/blob/master/LICENSE) for more details.
2 changes: 0 additions & 2 deletions blog-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ tags:
is_featured: Boolean value (true or false)
views: Number of views (if applicable)
---


7 changes: 1 addition & 6 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ module.exports = {
policies: [
{
userAgent: "*",
disallow: [
"/profile",
"/blogs/search",
"/blogs/search",
"/courses/search",
],
disallow: ["/profile", "/blogs/search", "/blogs/search", "/courses/search"],
},
{ userAgent: "*", allow: "/" },
],
Expand Down
Loading

0 comments on commit f6b398f

Please sign in to comment.