Skip to content

Commit

Permalink
Merge pull request #2 from GeorgeHulpoi/beta
Browse files Browse the repository at this point in the history
feat(v3): migration to Payload v3 and more features
  • Loading branch information
GeorgeHulpoi authored Nov 19, 2024
2 parents 3fa5220 + 53691ac commit 0581278
Show file tree
Hide file tree
Showing 57 changed files with 9,248 additions and 1,839 deletions.
45 changes: 43 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
**/*.spec.ts
**/*.spec.js
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.eslintcache
/*.tgz
/dist
dev/.next
.swc
.turbo
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize]

jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: '8.15.7'
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint
27 changes: 20 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
RECAPTCHA_SECRET: ${{ secrets.RECAPTCHA_SECRET }}
DATABASE_URI: 'mongodb://127.0.0.1/payload-recaptcha-v3'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
- run: npm run build
- run: npm publish
version: '8.15.7'
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm dev:build
- uses: supercharge/[email protected]
with:
mongodb-version: '7.0'
- run: pnpm exec playwright install
- run: pnpm test
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52 changes: 33 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
name: Test

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
name: Test

on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize]

jobs:
install:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
RECAPTCHA_SECRET: ${{ secrets.RECAPTCHA_SECRET }}
DATABASE_URI: 'mongodb://127.0.0.1/payload-recaptcha-v3'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: '8.15.7'
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm dev:build
- uses: supercharge/[email protected]
with:
mongodb-version: '7.0'
- run: pnpm exec playwright install
- run: pnpm test
Loading

0 comments on commit 0581278

Please sign in to comment.