-
Notifications
You must be signed in to change notification settings - Fork 0
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
CI test template #12
CI test template #12
Conversation
This pull request has been linked to Shortcut Story #428665: [App templates] Set up continuous integration (CI). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you! A few minor comments, but LGTM to merge any time.
.github/workflows/template-ci.yml
Outdated
matrix: | ||
# If you want to exec in all node versions, uncomment the next line | ||
#node-version: [18.x, 20.x, 22.x] | ||
# If you want to exec in a specific framework, uncomment the next line | ||
#framework: [react, vue, angular] | ||
|
||
# Execution | ||
node-version: [20.x] | ||
framework: [react] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we execute the tests in all frameworks by default? They are distinct codebases, so a regression could happen to any one of them independently. No need for other Node.js versions, to simplify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed ✅
|
||
- name: Start project | ||
env: | ||
YARN_ENABLE_IMMUTABLE_INSTALLS: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, was YARN_ENABLE_IMMUTABLE_INSTALLS
required because of errors, or is it something you prefer for other reasons? If it's errors let's just leave a TODO, I can take a look at that later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to configure it because of problems with yarn.lock
.github/workflows/template-ci.yml
Outdated
set -x | ||
cd ${PROJECT_PATH} | ||
yarn | ||
yarn dev & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that each framework will open on a different port number by default, to allow opening them all at once. To override that you can run yarn dev --port 4000
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed ✅
Ticket: https://app.shortcut.com/cartoteam/story/428665/app-templates-set-up-continuous-integration-ci
Autolink: [sc-428665]