Skip to content

Commit

Permalink
add snapshot tests pipeline + update test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedybaird committed Aug 20, 2024
1 parent 58a5194 commit c05447b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/usecase-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit c05447b

Please sign in to comment.