-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix WritableDeviceState * Fix tsconfig error * Fix test * Create build-plugins-changed.yml * Update build-sdk.yml * Update build-plugins-changed.yml
- Loading branch information
Showing
4 changed files
with
43 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build changed plugins | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: ["plugins/**"] | ||
pull_request: | ||
paths: ["plugins/**"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Set up base packages | ||
run: ./npm-install.sh | ||
|
||
- name: Build changed plugins | ||
run: | | ||
# Get the list of changed directories in /plugins | ||
changed_dirs=$(git diff --name-only HEAD^ HEAD ./plugins | awk -F/ '{print $2}' | uniq) | ||
# Loop through each changed directory | ||
for dir in $changed_dirs; do | ||
pushd "./plugins/$dir" | ||
echo "plugins/$dir > npm install" | ||
npm install | ||
echo "plugins/$dir > npm run build" | ||
npm run build | ||
popd | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"sourceMap": true | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
"src/**/*", | ||
"test/**/*", | ||
] | ||
} |