Skip to content

Commit

Permalink
using yarn and switching up next 13 conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewilco committed Apr 23, 2023
1 parent 334388e commit 10b9eb9
Show file tree
Hide file tree
Showing 21 changed files with 2,301 additions and 8,166 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
NEXT_TELEMETRY_DISABLED: 1
strategy:
matrix:
node-version: [16.x]
node-version: [16.x, 18.x]
services:
mongodb:
image: mongo:4.4
Expand All @@ -18,17 +18,17 @@ jobs:
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: npm install
run: yarn install
- name: Install Playwright
run: npm run deps
run: yarn deps
- name: Build Project for Testing
run: npm run build
run: yarn build
- name: Run Playwright
run: npm test
run: yarn test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ yarn-error.log*
.env.test.local
.env.production.local

tsconfig.tsbuildinfo

# vercel
.vercel

test-results/**/*
test-results/**/*
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ brew install mongodb-community
Install the project dependencies:

```
npm install
yarn
```

Install playwright:

```
npx playwright install --with-deps
yarn playwright install --with-deps
```

Build the project first:

```
npm run build
yarn build
```

## Notes
Expand Down
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = {
swcMinify: true,
experimental: {
appDir: true,
serverComponentsExternalPackages: ["mongoose"],
},
};

0 comments on commit 10b9eb9

Please sign in to comment.