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

[I85] Upgrade to Strapi 5 and add Jest + ESLint + Prettier #86

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

corasaurus-hex
Copy link
Contributor

@corasaurus-hex corasaurus-hex commented Aug 5, 2024

What changed?

#85

  • Upgraded to Strapi 5
  • Added ESLint
  • Added Prettier
  • Added Jest with basic tests
  • Added bootstrapping of permissions in the database
  • Added GitHub Action to run all linting + type checking + formatting + testing with each PR
  • Added a pull request template

How can you test this?

  1. Pull in this branch
  2. Run yarn
  3. Run yarn check:all

@@ -1,22 +1,27 @@
export default ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET'),
secret: env("ADMIN_JWT_SECRET"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier makes you pick either single or double quotes, and I like double quotes, so here we are ☺️

"check:format": "yarn format",
"check:build": "yarn build",
"check:test": "yarn test",
"check:all": "yarn check:types && yarn check:lint && yarn check:format && yarn check:build && yarn check:test",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may feel like duplication but having a CI tasks in here (all the check: ones) as separate tasks from what you use directly frees us up to make further modifications to these tasks in the future.

- ESlint
- Prettier
- Jest
- Bootstrap info

Co-authored-by: Dierdre D Dixon <[email protected]>
@corasaurus-hex corasaurus-hex force-pushed the feat/85/upgrade-to-strapi-5 branch from 379359e to cb71c88 Compare August 15, 2024 18:27
@corasaurus-hex corasaurus-hex enabled auto-merge (rebase) August 15, 2024 18:30
@corasaurus-hex corasaurus-hex requested a review from madcalf August 15, 2024 18:31
@corasaurus-hex corasaurus-hex merged commit 8608d7e into saga Aug 15, 2024
1 check passed
@corasaurus-hex corasaurus-hex deleted the feat/85/upgrade-to-strapi-5 branch August 15, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants