-
Notifications
You must be signed in to change notification settings - Fork 55
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: End to end testing #153
Conversation
For PRs, the CI will create releases under the action-release-prs project while master will create them for the action-release project. We use different projects since the Release feature does not handle different environments as a way to separate commits. Alternatively, we could have postfixed a different string per PR and use the same project.
# instead of action-release-prs | ||
# For other branches: https://sentry-ecosystem.sentry.io/releases/?project=4505075304693760 | ||
# For master branch: https://sentry-ecosystem.sentry.io/releases/?project=6576594 | ||
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }} |
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.
@@ -11,6 +19,8 @@ jobs: | |||
steps: | |||
- name: Checkout repo | |||
uses: actions/checkout@v3 | |||
with: | |||
fetch-depth: 0 |
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 is explained in the troubleshoot section.
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
||
# This allows executing the action's code in the next step rather than a specific tag | ||
- uses: './.github/actions/use-local-dockerfile' |
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 is basically an sed command to tell the action to use the Dockerfile
found in the checkout.
diff --git a/action.yml b/action.yml
index 89bbe57..4095cbe 100644
--- a/action.yml
+++ b/action.yml
@@ -47,7 +47,7 @@ inputs:
runs:
using: 'docker'
# If you change this, update the use-local-dockerfile action
- image: 'docker://ghcr.io/getsentry/action-release-image:latest'
+ image: 'Dockerfile'
branding:
icon: 'triangle'
color: 'purple'
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 don't know much about this GH action tbh, but overall changes look good.
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
For PRs, the CI will create releases under the action-release-prs project while master will create them for the action-release project.
We use different projects since the Release feature does not handle different environments as a way to separate commits. Alternatively, we could have postfixed a different string per PR and use the same project.
This PR also enable us to test real action-release execution (read: end to end testing).