-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Grab compare SHA for GH pre-merge commits #147
Changes from all commits
ed67122
75e1bfc
6f1ee34
f900b7e
e68b43b
9e0809b
4ebe7d7
c5d9902
8448dbc
319e880
5869b73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pnpm setup action version was upgraded from v2 to v4. Make sure this plugin's functionalities are unbroken by this change. |
||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -39,7 +39,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -62,12 +62,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -79,7 +79,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -108,12 +108,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -125,7 +125,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -154,12 +154,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -171,7 +171,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -237,12 +237,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -254,7 +254,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -288,12 +288,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. HEAD_SHA and BASE_SHA were added as environment variables. Make sure they are being declared and correctly manipulated in the context. |
||
run_install: false | ||
|
@@ -305,7 +305,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -326,6 +326,8 @@ jobs: | |
- name: Build ${{ matrix.example }} app for production | ||
working-directory: ./examples/${{ matrix.example }} | ||
env: | ||
HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
NEXT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
NUXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
|
@@ -358,12 +360,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -375,7 +377,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -396,6 +398,8 @@ jobs: | |
- name: Build ${{ matrix.example }} app for staging | ||
working-directory: ./examples/${{ matrix.example }} | ||
env: | ||
HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} | ||
NEXT_API_URL: ${{ secrets.CODECOV_STAGING_API_URL }} | ||
NUXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
|
@@ -436,12 +440,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -453,7 +457,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
@@ -502,12 +506,12 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
@@ -519,7 +523,7 @@ jobs: | |
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-codecov-js-bundle-plugin-node-modules | ||
with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ export default defineConfig({ | |
bundleName: "@codecov/example-rollup-app", | ||
apiUrl: process.env.ROLLUP_API_URL, | ||
uploadToken: process.env.ROLLUP_UPLOAD_TOKEN, | ||
debug: true, | ||
nicholas-codecov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uploadOverrides: { | ||
sha: process.env.HEAD_SHA, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding an uploadOverrides object with 'sha'/'compareSha' properties. Make sure this doesn't overlap or cause conflicts with existing functionality, and that the values are being correctly provided from the environment. |
||
compareSha: process.env.BASE_SHA, | ||
}, | ||
}), | ||
], | ||
}); |
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.
The node setup action version was upgraded from v3 to v4. Compatibility for all related plugins and actions with the newer version should be ensured.