-
Notifications
You must be signed in to change notification settings - Fork 71
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
Added github actions periodic build #2406
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
.github/workflows/periodic-build.yml
Outdated
- name: Install dependencies | ||
run: yarn install && yarn postinstall | ||
|
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.
- name: Install dependencies | |
run: yarn install && yarn postinstall |
.github/workflows/periodic-build.yml
Outdated
|
||
- name: Prepare and build graphcommerce | ||
run: | | ||
git clone -b main --depth 1 https://github.com/graphcommerce-org/graphcommerce.git && mkdir -p /tmp/graphcommerce-build |
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 isn't necessary when checking out in graphcommerce (see above)
.github/workflows/periodic-build.yml
Outdated
cp -R graphcommerce/examples/magento-graphcms/. /tmp/graphcommerce-build && rm -rf graphcommerce | ||
cd /tmp/graphcommerce-build && yarn && yarn codegen && yarn build |
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.
cp -R graphcommerce/examples/magento-graphcms/. /tmp/graphcommerce-build && rm -rf graphcommerce | |
cd /tmp/graphcommerce-build && yarn && yarn codegen && yarn build | |
cp -R graphcommerce/examples/magento-graphcms/. my-project && cd my-project | |
yarn | |
yarn codegen | |
yarn build |
.github/workflows/periodic-build.yml
Outdated
- name: Upload success artifact | ||
if: success() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: success-${{ matrix.version }} | ||
path: /tmp/graphcommerce-build | ||
|
||
- name: Upload failure artifact | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: failure-${{ matrix.version }} | ||
path: /tmp/graphcommerce-build |
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.
It is fine when one fails, everything fails
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.
After we've made this workflow for the main branch and everything works as expected. We create a new PR that targets the canary branch which has the modifications that are specific to that version, specifically node 22.
.github/workflows/periodic-build.yml
Outdated
publish: | ||
strategy: | ||
matrix: | ||
version: [18, 20, 22] |
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.
For the main branch, it should be [18, 20]
.github/workflows/periodic-build.yml
Outdated
- cron: 0 0 * * * | ||
push: | ||
branches: | ||
- 'feature/periodic-release' |
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.
- 'feature/periodic-release' | |
- 'canary' |
No description provided.