-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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(connect-react): prep preview of @pipedream/connect-react #14718
Changes from all commits
8c83595
0f1f0c9
b375bf3
a1b0de7
b57ecf8
9d8df56
f084a9e
4a16b3d
2707030
611a1cc
b22164a
70bfbe0
80ec405
c64f35d
1dc232d
f1c86b7
264c7da
7d639cd
1073c75
4fa8442
d08f1f8
64a52f6
8d789a5
f4095a0
c89c1e5
e810e89
31c10e0
fc17d90
fc06323
95236e2
cb450e4
3a6d2fe
1969b72
d893d4c
7373b0d
06c7dc8
a7c7c61
9781b02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
@@ -140,7 +140,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -18,15 +18,30 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Checkout code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- uses: pnpm/[email protected] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version: 9.14.2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Get pnpm store directory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id: pnpm-cache | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- uses: actions/cache@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name: Setup pnpm cache | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
restore-keys: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
${{ runner.os }}-pnpm-store- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Set up Node.js | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
node-version: '18' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
run: npm install | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
working-directory: packages/sdk | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Run tests | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
run: npm test | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
run: pnpm test | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+42
to
+46
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. Add proper pnpm setup steps before using pnpm commands While switching to pnpm is good for consistency, the workflow needs additional setup steps to ensure reliable execution. Add these steps before the "Install dependencies" step: - name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 9.14.2
+
+ - name: Setup pnpm cache
+ uses: actions/cache@v3
+ with:
+ path: ~/.pnpm-store
+ key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
working-directory: packages/sdk This ensures:
📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
working-directory: packages/sdk |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
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. Verify Node.js compatibility with pnpm 9.14.2 The workflow uses Node.js 14 with pnpm 9.14.2. According to pnpm's documentation, version 9.x requires Node.js 16 or higher. Consider upgrading the Node.js version to ensure compatibility. Apply this change to both jobs: uses: actions/[email protected]
with:
- node-version: 14
+ node-version: 16 Also applies to: 125-125 |
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
@@ -122,7 +122,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
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. Verify Node.js compatibility with pnpm 9.14.2 The workflow uses Node.js 14 which might be too old for pnpm 9.x. According to pnpm's documentation, version 9.x requires Node.js 16 or higher. Consider updating the Node.js version in the workflow: uses: actions/[email protected]
with:
- node-version: 14
+ node-version: 16
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- name: Get pnpm store directory | ||
if: github.ref != 'refs/heads/master' # Cache is used only for dry runs | ||
id: pnpm-cache | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.33.6 | ||
version: 9.14.2 | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
|
@@ -70,31 +70,29 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install -r | ||
- name: Setup Node Env | ||
uses: actions/setup-node@v4.0.3 | ||
uses: actions/setup-node@v4.1.0 | ||
with: | ||
node-version: 18 | ||
node-version: 18.18.0 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: 'pnpm' | ||
- name: Compile TypeScript | ||
run: npm run build | ||
- name: Lint Code Base | ||
uses: github/super-linter@v6 | ||
env: | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc | ||
LINTER_RULES_PATH: / | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_JAVASCRIPT_ES: true | ||
VALIDATE_JSON: true | ||
# - name: Lint Code Base | ||
# uses: super-linter/super-linter/[email protected] | ||
# env: | ||
# DEFAULT_BRANCH: master | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# JAVASCRIPT_ES_CONFIG_FILE: eslint.config.mjs | ||
# LINTER_RULES_PATH: / | ||
# VALIDATE_ALL_CODEBASE: false | ||
# VALIDATE_JAVASCRIPT_ES: true | ||
# VALIDATE_JSON: true | ||
# ESLint only on changed files (not the same as the above super-linter) | ||
- name: Get Changed Files (space-separated) | ||
id: changed_files_space | ||
uses: Ana06/[email protected] | ||
with: | ||
format: 'space-delimited' | ||
- name: Lint changed files | ||
run: npx eslint --quiet ${{ steps.changed_files_space.outputs.added_modified }} ${{ steps.changed_files_space.outputs.renamed }} | ||
run: pnpm exec eslint ${{ steps.changed_files_space.outputs.added_modified }} ${{ steps.changed_files_space.outputs.renamed }} | ||
- name: Get Changed Files (comma-separated) | ||
id: changed_files | ||
uses: Ana06/[email protected] | ||
|
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.
🛠️ Refactor suggestion
Update deprecated workflow command and optimize cache configuration
set-output
command is deprecated. Use the newGITHUB_OUTPUT
syntax instead.Apply this diff:
🧰 Tools
🪛 actionlint (1.7.3)
26-26: workflow command "set-output" was deprecated. use
echo "{name}={value}" >> $GITHUB_OUTPUT
instead: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions(deprecated-commands)