-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: solve the performance problem (#220)
By exiting after upload finishes to stop dangling promises from preventing the Node process finish
- Loading branch information
Showing
6 changed files
with
116 additions
and
24 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,27 @@ | ||
name: example-performance | ||
on: [pull_request] | ||
jobs: | ||
# cache using npm-install | ||
cache1: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# look at fast this action installs a single dependency | ||
- uses: bahmutov/npm-install@HEAD | ||
with: | ||
working-directory: examples/basic | ||
install-command: 'npm install chalk' | ||
cache-key-prefix: chalk8 | ||
|
||
# cache using https://github.com/actions/cache | ||
cache2: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: chalk-v2 | ||
- name: Install just chalk | ||
run: npm install chalk |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ yarn.lock | |
.gitignore | ||
.prettierignore | ||
.npmrc | ||
.nvmrc |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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