Skip to content

Commit

Permalink
chore: use turboreposcript and run test:ci script (orval-labs#1502)
Browse files Browse the repository at this point in the history
* feat: add test script in `turborepo` of samples

* feat: use turborepo script in `test:ci` script and remove `samples:*`
  • Loading branch information
soartec-lab authored Jul 5, 2024
1 parent 7ae76b4 commit 648fc6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,8 @@
"update-samples": "cd ./samples && yarn && yarn generate-api --force",
"build": "turbo run build",
"test": "turbo run test",
"test:ci": "yarn test -- -- --run && yarn run-s 'test:samples:*'",
"test:samples:vue-query": "cd ./samples/vue-query && yarn && yarn test",
"test:samples:svelte-query": "cd ./samples/svelte-query && yarn && yarn test",
"test:samples:react-query:basic": "cd ./samples/react-query/basic && yarn && yarn test",
"test:samples:react-query:custom-client": "cd ./samples/react-query/custom-client && yarn && yarn test",
"test:samples:react-query:form-data": "cd ./samples/react-query/form-data && yarn && yarn test",
"test:samples:react-query:form-data-mutator": "cd ./samples/react-query/form-data-mutator && yarn && yarn test",
"test:samples:react-query:form-url-encoded": "cd ./samples/react-query/form-url-encoded && yarn && yarn test",
"test:samples:react-query:form-url-encoded-mutator": "cd ./samples/react-query/form-url-encoded-mutator && yarn && yarn test",
"test:samples:react-query:hook-mutator": "cd ./samples/react-query/hook-mutator && yarn && yarn test",
"test:samples": "cd ./samples && yarn && yarn test",
"test:ci": "yarn test && yarn test:samples",
"lint": "turbo run lint",
"dev": "turbo run dev"
},
Expand Down
3 changes: 2 additions & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"turbo": "^1.13.3"
},
"scripts": {
"generate-api": "turbo run generate-api"
"generate-api": "turbo run generate-api",
"test": "turbo test --filter=!react-query-form-data --filter=!react-query-form-url-encoded --filter=!react-query-form-url-encoded-mutator --filter=!react-query-form-data-mutator --filter=!react-query-hook-mutator"
}
}
5 changes: 4 additions & 1 deletion samples/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"generate-api": {}
"generate-api": {},
"test": {
"dependsOn": ["generate-api"]
}
}
}

0 comments on commit 648fc6c

Please sign in to comment.