diff --git a/.github/workflows/tests_ci.yml b/.github/workflows/tests_ci.yml index b6ade6ffba6..a97d201001e 100644 --- a/.github/workflows/tests_ci.yml +++ b/.github/workflows/tests_ci.yml @@ -51,6 +51,16 @@ jobs: - name: Unit tests run: DATABASE_URL=file:./test.db pnpm jest --ci --testPathIgnorePatterns=admin-ui-tests --testPathIgnorePatterns=api-tests --testPathIgnorePatterns=examples-smoke-tests --testPathIgnorePatterns=examples/testing + examples_snapshot_tests: + name: Examples Snapshot Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + - uses: ./.github/actions/ci-setup-examples + + - name: Snapshot tests + run: pnpm run test:examples-snapshot-tests + graphql_api_tests_postgresql: name: API Tests PostgreSQL runs-on: ubuntu-latest diff --git a/examples/usecase-todo/package.json b/examples/usecase-todo/package.json index e2c20bfc0ba..aa64f9a3ebb 100644 --- a/examples/usecase-todo/package.json +++ b/examples/usecase-todo/package.json @@ -8,7 +8,7 @@ "dev": "keystone dev", "start": "keystone start", "build": "keystone build", - "monorepo:snapshot-test": "keystone build --no-ui --frozen", + "test:monorepo-snapshot-test": "keystone build --no-ui --frozen", "seed-data": "tsx seed-data.ts" }, "dependencies": { diff --git a/package.json b/package.json index d7a50525c4a..d51ba03723a 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "test:types": "tsc", "test:debug": "node --inspect-brk ./node_modules/.bin/jest", "test:admin-ui": "jest tests/admin-ui-tests", + "test:examples-snapshot-tests": "pnpm -F './examples/**' run test:monorepo-snapshot-test", "build": "preconstruct build", "prepare": "preconstruct dev" },