Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/next poc merge main #5204

Merged
merged 570 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
570 commits
Select commit Hold shift + click to select a range
dc1b900
wip moves payload, user and data into partial req
JarrodMFlesch Dec 18, 2023
325247e
chore: adjust req type
JarrodMFlesch Dec 19, 2023
b99e58d
chore(next): installs sass and resolves type errors
jacobsfletch Dec 19, 2023
2dc3ab3
feat: working login route/view
JarrodMFlesch Dec 19, 2023
7917fac
fix: me route
JarrodMFlesch Dec 19, 2023
6949158
chore(next): scaffolds access routes (#4562)
jacobsfletch Dec 20, 2023
f5f02b7
chore(next): scaffolds admin layout and dashboard view (#4566)
jacobsfletch Dec 20, 2023
1325055
chore(next): builds initPage utility (#4589)
jacobsfletch Dec 21, 2023
70b8310
feat(3.0): next route handlers (#4590)
JarrodMFlesch Dec 21, 2023
ec08d98
chore: removes old files
JarrodMFlesch Dec 21, 2023
318bbad
chore(next): ssr list view (#4594)
jacobsfletch Dec 22, 2023
7ffab3e
chore: removes old files
JarrodMFlesch Dec 22, 2023
e225537
chore: adjusts graphql file imports to align with new operation exports
JarrodMFlesch Dec 22, 2023
3de954c
chore: allows for custom endpoints
JarrodMFlesch Dec 22, 2023
af4598b
chore: cleanup
JarrodMFlesch Jan 2, 2024
815bf37
chore(next): ssr edit view (#4614)
jacobsfletch Dec 27, 2023
3027747
chore(ui): ssr main nav (#4619)
jacobsfletch Dec 28, 2023
8c7700d
chore(next): ssr account view (#4620)
jacobsfletch Dec 28, 2023
a1d3f59
chore(next): ssr auth views and document create (#4631)
jacobsfletch Dec 29, 2023
7ef4acf
chore(next): ssr globals view (#4640)
jacobsfletch Dec 30, 2023
1e8b889
chore(next): scaffolds document layout (#4644)
jacobsfletch Dec 31, 2023
871b9a0
chore(next): ssr versions view (#4645)
jacobsfletch Jan 3, 2024
c01fdcd
chore(next): ssr field conditions (#4675)
jacobsfletch Jan 3, 2024
7622132
chore(next): ssr field validations (#4700)
jacobsfletch Jan 5, 2024
513c2b3
chore(next): moves dashboard view into next dir
jacobsfletch Jan 5, 2024
2dd67ad
chore(next): moves account view into next dir
jacobsfletch Jan 5, 2024
9d7b40b
chore(next): moves global edit view into next dir
jacobsfletch Jan 5, 2024
af6fca7
chore(next): returns isolated configs and locale from initPage
jacobsfletch Jan 6, 2024
87d2405
chore(next): ssr api view (#4721)
jacobsfletch Jan 8, 2024
394c9e7
feat: adds i18n functionality within Rest API, Local and Client conte…
JarrodMFlesch Jan 9, 2024
b1b6b9a
chore: separate client translation groups with empty line
JarrodMFlesch Jan 9, 2024
df0e98e
chore: add missing translation used in db adapters
JarrodMFlesch Jan 9, 2024
c22f4ef
chore: simplify next/routes export and import paths
JarrodMFlesch Jan 10, 2024
01ffa30
chore: renames PayloadT to Payload
JarrodMFlesch Jan 10, 2024
dde96dd
chore(next): custom views (#4748)
jacobsfletch Jan 10, 2024
6cd31ed
chore: fix translation tsconfig
JarrodMFlesch Jan 10, 2024
f85562b
chore: adjust other package ts-configs that rely on translations
JarrodMFlesch Jan 10, 2024
99beb9c
chore(next): installs @payloadcms/ui as direct dependency
jacobsfletch Jan 10, 2024
1d4588e
chore(next): progress to build
jacobsfletch Jan 10, 2024
1177795
chore(next): migrates types (#4792)
jacobsfletch Jan 12, 2024
c5a8f19
fixes acccept-language detection
JarrodMFlesch Jan 12, 2024
9c5145c
chore(next): moves remaining components out from payload core (#4794)
jacobsfletch Jan 12, 2024
991fe63
chore(deps): removes all unused dependencies from payload core (#4797)
jacobsfletch Jan 12, 2024
06e9766
chore(next): achieves buildable state (#4803)
jacobsfletch Jan 14, 2024
20bd12a
adds Translation component and removes more react-i18next
JarrodMFlesch Jan 16, 2024
9d5efb9
fixes up remaining translation strings
JarrodMFlesch Jan 16, 2024
576cca7
fixes a few i18n TODO's
JarrodMFlesch Jan 16, 2024
6455459
chore: remaining translation strings without colons
JarrodMFlesch Jan 16, 2024
70a0c2f
chore: adds missing ja translations
JarrodMFlesch Jan 16, 2024
3ea0f55
chore(next): ssr group field (#4830)
jacobsfletch Jan 16, 2024
aae6031
chore: removes placeholder t function
JarrodMFlesch Jan 17, 2024
40db84c
chore: removes old file
JarrodMFlesch Jan 17, 2024
fdd89ec
chore(bundler-webpack): removes webpack bundler
jacobsfletch Jan 17, 2024
d48b390
chore(bundler-vite): removes vite bundler
jacobsfletch Jan 17, 2024
d163b98
chore(next): ssr tabs field (#4863)
jacobsfletch Jan 17, 2024
acc159c
chore(next): ssr row field
jacobsfletch Jan 17, 2024
2c9e8a0
chore(next): ssr textarea field
jacobsfletch Jan 17, 2024
aec5312
chore(next): wires server action into document edit view (#4873)
jacobsfletch Jan 19, 2024
aaa4477
chore(next): conditional logic (#4880)
jacobsfletch Jan 19, 2024
64ff9d9
chore(next): ssr radio, point, code, json, ui, and hidden fields (#4891)
jacobsfletch Jan 22, 2024
5691760
chore(next): ssr collapsible field (#4894)
jacobsfletch Jan 22, 2024
c6e33b2
chore: remove findByID from req
JarrodMFlesch Jan 23, 2024
c41840e
chore: adjusts file property on request type
JarrodMFlesch Jan 19, 2024
704d24c
comment clarification
JarrodMFlesch Jan 19, 2024
d070241
chore: wires up busboy with Requst readstream
JarrodMFlesch Jan 22, 2024
60b8c2f
chore: ports over express-fileupload into a NextJS compatible format
JarrodMFlesch Jan 23, 2024
c4732f5
chore: adjust upload file structure
JarrodMFlesch Jan 23, 2024
1f80840
chore: adds try/catch around routes, corrects a few route responses
JarrodMFlesch Jan 23, 2024
249f61c
chore: renames file/function
JarrodMFlesch Jan 24, 2024
b95c99c
chore: improve req type safety in local operations, misc req.files re…
JarrodMFlesch Jan 24, 2024
987db90
chore: misc type and fn export changes
JarrodMFlesch Jan 24, 2024
ccb5911
chore: ensures root routes take pass unmodified request to root routes
JarrodMFlesch Jan 24, 2024
12d30b1
chore: improve types
JarrodMFlesch Jan 25, 2024
b5c8c48
chore: consolidates locale api req initialization (#4922)
JarrodMFlesch Jan 25, 2024
d16a55d
chore(next): overhauls field rendering strategy (#4924)
jacobsfletch Jan 26, 2024
54d60fa
chore(next): ssr array field (#4937)
jacobsfletch Jan 28, 2024
5ee2cf3
chore(next): ssr blocks field (#4942)
jacobsfletch Jan 29, 2024
049f4e4
chore(next): ssr upload field and document drawer (#4957)
jacobsfletch Feb 1, 2024
aee96b9
chore(next): wires form submissions (#4982)
jacobsfletch Feb 2, 2024
16f92c2
chore: api handler adjustments
JarrodMFlesch Feb 2, 2024
119b226
feat: adds graphql playground handler
JarrodMFlesch Feb 2, 2024
4f5a651
adds credentials include setting to playground
JarrodMFlesch Feb 2, 2024
951d564
remove old playground init, stub graphql handler location
JarrodMFlesch Feb 5, 2024
a08496a
fix: allow for null fallbackLocale
JarrodMFlesch Feb 5, 2024
9648913
fix: correctly prioritize locales passed as null
JarrodMFlesch Feb 5, 2024
caa0993
chore: move all graphql code into next package
JarrodMFlesch Feb 5, 2024
2289139
graphql changes
JarrodMFlesch Feb 6, 2024
47f115e
chore: semi working version of graphql http layer
JarrodMFlesch Feb 7, 2024
6d80e45
gql fix attempts
JarrodMFlesch Feb 6, 2024
7ea5013
rm console log
JarrodMFlesch Feb 7, 2024
e736da6
chore: partial gql changes
JarrodMFlesch Feb 7, 2024
9e15c95
chore: adds gql and gql-http back into payload
JarrodMFlesch Feb 7, 2024
971b492
chore: removes collection from req
JarrodMFlesch Feb 7, 2024
74fa626
chore: separates graphql package out for schema generation
JarrodMFlesch Feb 7, 2024
88d9c3f
chore: dep cleanup
JarrodMFlesch Feb 7, 2024
3b94cba
chore: move graphql handlers
JarrodMFlesch Feb 7, 2024
be73cf8
chore: removes unused deps
JarrodMFlesch Feb 8, 2024
6afc466
chore(next): ssr list view (#5032)
jacobsfletch Feb 8, 2024
a6932a4
chore: refactor response handler order for custom endpoints
JarrodMFlesch Feb 8, 2024
693004f
chore: add back in condition for collection GET path with 2 slugs
JarrodMFlesch Feb 8, 2024
8f01a0a
chore: rm optional chain
JarrodMFlesch Feb 8, 2024
f5f9a03
chore: import sort route file
JarrodMFlesch Feb 8, 2024
dd532b2
chore: allows custom endpoints to attempt before erroring
JarrodMFlesch Feb 8, 2024
ba81962
feat: adds memoization to translation functions (#5036)
JarrodMFlesch Feb 8, 2024
e4d109e
chore: fix APIError import
JarrodMFlesch Feb 8, 2024
b75ecc1
chore: return attemptCustomEndpointBeforeError responses
JarrodMFlesch Feb 9, 2024
103adf5
chore(next): properly instantiates table columns
jacobsfletch Feb 8, 2024
cd4dc53
fix(next): attaches params to req and properly assigns prefs key (#5042)
jacobsfletch Feb 9, 2024
d59d2ca
chore: reorganize next route order
JarrodMFlesch Feb 9, 2024
07ecc89
chore(next): adds RouteError handler to next routes
JarrodMFlesch Feb 9, 2024
b0d9670
chore: builds payload successfully
JarrodMFlesch Feb 9, 2024
abde87e
chore: misc file omissions
JarrodMFlesch Feb 9, 2024
d5ded18
fix(ui): maintains proper column order
jacobsfletch Feb 10, 2024
f7ee7d0
fix(ui): ensures first cell is a link
jacobsfletch Feb 12, 2024
1ca508e
fix(next): properly copies url object in createPayloadRequest (#5064)
jacobsfletch Feb 12, 2024
f31bb8d
fix(ui): bumps react-toastify to v10.0.4 to fix hydration warnings
jacobsfletch Feb 12, 2024
ab0947e
feat: add route for static file GET requests (#5065)
JarrodMFlesch Feb 12, 2024
74d6a02
chore(next): allows resolved config promise to be thread through init…
jacobsfletch Feb 12, 2024
642ef73
chore(ui): conditionally renders field label from props
jacobsfletch Feb 13, 2024
970a7b6
feat(next): next install script
denolfe Feb 13, 2024
11a40f5
chore: pass config to route handlers
JarrodMFlesch Feb 14, 2024
d13b733
feat: initial test suite framework (#4929)
JarrodMFlesch Feb 14, 2024
83fc6be
chore(next): renderable account, api, and create first user views (#5…
jacobsfletch Feb 14, 2024
f228a0d
fix(next): properly parses search params in find, update, and delete …
jacobsfletch Feb 15, 2024
468af17
chore(next): ssr versions view (#5085)
jacobsfletch Feb 15, 2024
1686982
chore: adds homepage for scss testing
jmikrut Feb 14, 2024
4dba5d5
chore: moves dev folder to top, establishes new test pattern
jmikrut Feb 14, 2024
9cc8fe2
chore: working turbopack
jmikrut Feb 14, 2024
be88440
chore: sets up working dynamic payload-config imports
JarrodMFlesch Jan 26, 2024
0ba3754
remove unused code
JarrodMFlesch Jan 26, 2024
fffdd8c
chore: rm console log
JarrodMFlesch Jan 26, 2024
3e5a19d
misc
JarrodMFlesch Jan 26, 2024
754dd3c
feat: correctly subs out ability to boot REST API within same process
JarrodMFlesch Feb 1, 2024
5eb46e2
chore: WIP dev suites
JarrodMFlesch Feb 2, 2024
9b781b9
chore: removes need for REST_API folder in test dir
JarrodMFlesch Feb 2, 2024
4f718e1
removes duplicate bootAdminPanel fn
JarrodMFlesch Feb 2, 2024
fba453e
misc
JarrodMFlesch Feb 2, 2024
614840b
specify default export
JarrodMFlesch Feb 5, 2024
0d817c6
chore: sets up jest to work with next/jest
JarrodMFlesch Feb 12, 2024
613e62c
chore: progress to mongodb and sharp builds
jmikrut Feb 13, 2024
06f83d9
chore: passing community tests
jmikrut Feb 13, 2024
f199367
chore: sorta workin
JarrodMFlesch Feb 13, 2024
8c079d5
chore: adjust payload-config import
JarrodMFlesch Feb 14, 2024
43d4835
chore: adds rest client for Next handlers
JarrodMFlesch Feb 15, 2024
bc129aa
chore: removes test garb
JarrodMFlesch Feb 15, 2024
b4ee7d4
chore: restores payload-config tsconfig path temporarily
jmikrut Feb 15, 2024
55ad774
chore: establishes pattern for memory db during tests
jmikrut Feb 15, 2024
6984a4a
chore: bumps mongoose to 7
jmikrut Feb 15, 2024
05a7568
chore(next): 404s on nested create urls
jacobsfletch Feb 14, 2024
9cce866
chore: functional _community e2e
jmikrut Feb 15, 2024
802c326
chore: increases e2e expect timeout
jmikrut Feb 15, 2024
8c570be
fix(next): sanitizes locale toString from client config
jacobsfletch Feb 15, 2024
6102821
chore: type fixes
jmikrut Feb 15, 2024
6c911bb
chore: pulls mongodb from main
jmikrut Feb 16, 2024
1d39210
chore: uses graphql to log user in
jmikrut Feb 16, 2024
f91f35b
feat: passing auth test suite
JarrodMFlesch Feb 15, 2024
29d892a
chore(ui): threads params through context and conditionally renders d…
jacobsfletch Feb 15, 2024
49cdf44
feat(ui): adds params context (#5095)
jacobsfletch Feb 15, 2024
00f478f
chore: removes unecessary memory allocation for urlPropertiesObject o…
JarrodMFlesch Feb 16, 2024
4a99952
chore: passing graphql test suite
JarrodMFlesch Feb 16, 2024
3c58e68
chore: removes references to bson
jmikrut Feb 16, 2024
21a121b
chore: re-enables mongodb memory server for auth test suite
jmikrut Feb 16, 2024
34b200c
chore: replace bson with bson-objectid
JarrodMFlesch Feb 16, 2024
d149c77
feat: passing collections-rest int suite
JarrodMFlesch Feb 16, 2024
5ad4dd9
chore: fixes bad imports
jmikrut Feb 16, 2024
f6c801d
chore: more passing int suites
JarrodMFlesch Feb 16, 2024
3032b0c
feat: passing globals int tests
JarrodMFlesch Feb 17, 2024
180afd6
feat: passing hooks int test suite
JarrodMFlesch Feb 17, 2024
e8f2334
chore: remove last express file
JarrodMFlesch Feb 17, 2024
c4844aa
chore: start live-preview int test migration
JarrodMFlesch Feb 17, 2024
3f13c32
chore: passing localization int tests
JarrodMFlesch Feb 17, 2024
94f8915
passing relationships int tests
JarrodMFlesch Feb 17, 2024
435025e
chore: partial passing upload int tests
JarrodMFlesch Feb 19, 2024
a1c76bb
chore: fixes scss imports
jmikrut Feb 16, 2024
182ff98
chore(ui): renders document info provider at root (#5106)
jacobsfletch Feb 17, 2024
285aaee
chore: adds schema path to useFieldPath provider, more passing tests
JarrodMFlesch Feb 20, 2024
f04a427
chore: begins work to optimize translation imports
jmikrut Feb 19, 2024
108a389
chore: add translations to ui ts-config references
JarrodMFlesch Feb 19, 2024
abb1111
chore: add exports folder to package json exports
JarrodMFlesch Feb 19, 2024
4426d55
chore: adds readme how-to-use instructions
JarrodMFlesch Feb 19, 2024
1537c0a
chore: attempts refactor of translation imports
jmikrut Feb 19, 2024
4ffa2c4
chore: adds authentication:account translation key to server keys
JarrodMFlesch Feb 19, 2024
d451b82
chore: finishes translation optimization
jmikrut Feb 19, 2024
ad24900
chore: ignores warnings from mongodb
jmikrut Feb 19, 2024
1bbbcb3
chore(ui): renders live document title (#5115)
jacobsfletch Feb 19, 2024
0826e7e
chore(ui): ssr document tabs (#5116)
jacobsfletch Feb 19, 2024
f4b68c1
chore: handles redirecting from login
jmikrut Feb 20, 2024
6971030
chore: handle redirect with no searchParams
denolfe Feb 20, 2024
c6f019b
chore: handle missing segments
denolfe Feb 20, 2024
4cb2090
chore(next): migrates server action into standalone api endpoint (#5122)
jacobsfletch Feb 20, 2024
58ac17f
chore: adjust dashboard colection segments
denolfe Feb 20, 2024
522c707
test: update e2e suites
denolfe Feb 20, 2024
183be30
fix(ui): prevents unnecessary calls to form state
jacobsfletch Feb 21, 2024
52e8798
chore: fix finding global config fields from schema path
JarrodMFlesch Feb 21, 2024
1468bbe
fix(next): executes root POST endpoints
jacobsfletch Feb 21, 2024
e086c81
chore(ui): ignores values returned by form state polling
jacobsfletch Feb 21, 2024
cf9256e
chore: scaffolds ssr rte
jacobsfletch Feb 21, 2024
5c30a40
chore: renders client leaves
jacobsfletch Feb 21, 2024
2ff2284
chore: server-side rendered rich text elements
jmikrut Feb 21, 2024
4cc138b
chore: defines ClientFunction pattern
jmikrut Feb 22, 2024
8985393
chore(ui): migrates relationship field
jacobsfletch Feb 22, 2024
52d840a
chore: adds translations, cleans up slate
jmikrut Feb 22, 2024
c3adb83
chore: functional slate link
jmikrut Feb 22, 2024
080c82b
chore: slate upload ssr
jmikrut Feb 22, 2024
c875bde
chore: relationship slate ssr
jmikrut Feb 22, 2024
3471e16
chore: remaining slate ssr
jmikrut Feb 22, 2024
02e5dc1
chore: fixes circular workspace dep
jmikrut Feb 23, 2024
5d9081c
chore: correct broken int test import paths
JarrodMFlesch Feb 22, 2024
af0db04
chore: remove media files from root
JarrodMFlesch Feb 22, 2024
42fc5eb
chore: server renders custom edit view
jacobsfletch Feb 22, 2024
235cc31
fix(ui): resolves infinite loading in versions view
jacobsfletch Feb 22, 2024
731698c
fix(next): resolves global edit view lookup
jacobsfletch Feb 22, 2024
9f20838
chore: payload builds
jmikrut Feb 23, 2024
f8454aa
chore: delete unused files
jmikrut Feb 23, 2024
2b88567
chore: removes local property from payload
JarrodMFlesch Feb 23, 2024
06b44d2
chore: adds mongodb as dev dep in db-mongodb package
JarrodMFlesch Feb 23, 2024
ed7cec2
chore: hide deprecation warnings for tempfile and jest-environment-jsdom
denolfe Feb 23, 2024
ad1089d
chore: remove all translations from translations dist
JarrodMFlesch Feb 23, 2024
691dc39
chore: clean ts-config files
JarrodMFlesch Feb 23, 2024
8f8bd52
chore: simple type fixes
JarrodMFlesch Feb 23, 2024
49e00f3
chore(ui): server renders custom list view
jacobsfletch Feb 23, 2024
9a00d69
chore: fix next config payload-config alias
JarrodMFlesch Feb 23, 2024
3748d1c
chore: adds turbo alias paths
JarrodMFlesch Feb 23, 2024
0d44471
chore: adjusts translation generation
JarrodMFlesch Feb 23, 2024
20af9ec
chore: improve auth function
JarrodMFlesch Feb 26, 2024
253fb06
chore: eslint config for packages/ui
AlessioGr Feb 23, 2024
6e5b4bd
chore(ui): exports FormState
jacobsfletch Feb 23, 2024
53ebc40
chore(next): migrates account view to latest patterns
jacobsfletch Feb 23, 2024
bac343b
chore: disable barbie mode
AlessioGr Feb 25, 2024
0700fb3
chore(ui): lints
jacobsfletch Feb 26, 2024
b2c607d
chore(next): lints
jacobsfletch Feb 26, 2024
c314aec
chore: for alexical
JarrodMFlesch Feb 26, 2024
10ac0a2
chore: custom handler type signature adjustment
JarrodMFlesch Feb 26, 2024
4cbbc7c
fix: non-boolean condition result causes infinite looping (#4579)
AlessioGr Jan 4, 2024
58b4192
chore(richtext-lexical): upgrade lexical from v0.12.5 to v0.12.6 (#4732)
AlessioGr Jan 9, 2024
5facd84
feat(richtext-lexical): Blocks: generate type definitions for blocks …
AlessioGr Jan 30, 2024
fcc56db
feat(richtext-lexical)!: Update lexical from 0.12.6 to 0.13.1, port o…
AlessioGr Feb 12, 2024
d2272a2
chore: remove the 3
AlessioGr Feb 26, 2024
c45c013
chore: upgrade nodemon versions (#5059)
AlessioGr Feb 12, 2024
abce462
feat: add more options to addFieldStatePromise so that it can be used…
AlessioGr Jan 30, 2024
28ff0b2
feat(plugin-seo)!: remove support for payload <2.7.0 (#4765)
AlessioGr Jan 10, 2024
b8b9605
chore(plugin-seo): remove test script from package.json (#4762)
AlessioGr Jan 10, 2024
984836d
chore: upgrade @types/nodemailer from v6.4.8 to v6.4.14 (#4733)
AlessioGr Jan 9, 2024
d3327cc
chore: revert auth and initPage changes
JarrodMFlesch Feb 26, 2024
953c39d
chore(next): moves edit and list views (#5170)
jacobsfletch Feb 26, 2024
bb23350
fix: "The punycode module is deprecated" warning by updating nodemailer
AlessioGr Jan 2, 2024
7786e46
chore: adjust translations tsconfig paths in root
JarrodMFlesch Feb 26, 2024
c194608
chore: merge feat/next-poc
DanRibbens Feb 28, 2024
1a05a65
merge latest feat/next-poc
DanRibbens Feb 28, 2024
af6d8e6
chore: fix merge build
DanRibbens Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: Create a bug report for Payload
labels: ['possible-bug']
labels: ['[possible-bug]']
body:
- type: markdown
attributes:
Expand Down
89 changes: 61 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build

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

jobs:
changes:
Expand All @@ -15,25 +15,25 @@ jobs:
needs_build: ${{ steps.filter.outputs.needs_build }}
templates: ${{ steps.filter.outputs.templates }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 25
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
needs_build:
- '.github/workflows/**'
- 'packages/**'
- 'test/**'
- 'pnpm-lock.yaml'
- 'package.json'
templates:
- 'templates/**'
- name: Log all filter results
run: |
echo "needs_build: ${{ steps.filter.outputs.needs_build }}"
echo "templates: ${{ steps.filter.outputs.templates }}"
- uses: actions/checkout@v4
with:
fetch-depth: 25
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
needs_build:
- '.github/workflows/**'
- 'packages/**'
- 'test/**'
- 'pnpm-lock.yaml'
- 'package.json'
templates:
- 'templates/**'
- name: Log all filter results
run: |
echo "needs_build: ${{ steps.filter.outputs.needs_build }}"
echo "templates: ${{ steps.filter.outputs.templates }}"

core-build:
needs: changes
Expand Down Expand Up @@ -85,11 +85,15 @@ jobs:
strategy:
fail-fast: false
matrix:
database: [mongoose, postgres]
database: [mongoose, postgres, postgres-custom-schema, postgres-uuid, supabase]
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: payloadtests
AWS_ENDPOINT_URL: http://127.0.0.1:4566
AWS_ACCESS_KEY_ID: localstack
AWS_SECRET_ACCESS_KEY: localstack
AWS_REGION: us-east-1

steps:
- name: Use Node.js 18
Expand All @@ -109,22 +113,50 @@ jobs:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- name: Start LocalStack
run: pnpm docker:start

- name: Start PostgreSQL
uses: CasperWA/postgresql-action@v1.2
with:
postgresql version: '14' # See https://hub.docker.com/_/postgres for available versions
postgresql db: ${{ env.POSTGRES_DB }}
postgresql user: ${{ env.POSTGRES_USER }}
postgresql password: ${{ env.POSTGRES_PASSWORD }}
if: matrix.database == 'postgres'
if: startsWith(matrix.database, 'postgres')

- name: Install Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest
if: matrix.database == 'supabase'

- name: Initialize Supabase
run: |
supabase init
supabase start
if: matrix.database == 'supabase'

- name: Wait for PostgreSQL
run: sleep 30
if: startsWith(matrix.database, 'postgres')

- run: sleep 30
- name: Configure PostgreSQL
run: |
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "CREATE ROLE runner SUPERUSER LOGIN;"
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "SELECT version();"
echo "POSTGRES_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" >> $GITHUB_ENV
if: matrix.database == 'postgres'
if: startsWith(matrix.database, 'postgres')

- name: Configure PostgreSQL with custom schema
run: |
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "CREATE SCHEMA custom;"
if: matrix.database == 'postgres-custom-schema'

- name: Configure Supabase
run: |
echo "POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres" >> $GITHUB_ENV
if: matrix.database == 'supabase'

- name: Component Tests
run: pnpm test:components
Expand All @@ -142,7 +174,7 @@ jobs:
strategy:
fail-fast: false
matrix:
part: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8]
part: [ 1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8 ]

steps:
- name: Use Node.js 18
Expand Down Expand Up @@ -290,7 +322,7 @@ jobs:
strategy:
fail-fast: false
matrix:
template: [blank, website, ecommerce]
template: [ blank, website, ecommerce ]

steps:
- uses: actions/checkout@v4
Expand All @@ -307,9 +339,10 @@ jobs:
with:
mongodb-version: 6.0

- name: Build Website
- name: Build Template
run: |
cd templates/${{ matrix.template }}
cp .env.example .env
yarn install
yarn build
yarn generate:types
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ dist

test-results
.devcontainer
.localstack
/migrations
/media
.localstack

# Created by https://www.toptal.com/developers/gitignore/api/node,macos,windows,webstorm,sublimetext,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,windows,webstorm,sublimetext,visualstudiocode
Expand Down
Loading
Loading