Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Apr 22, 2024
1 parent 7df5ef8 commit 8390840
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 142 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Setup Node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 #Setup Node
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: make build
- run: make examples
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./examples

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Setup Node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 #Setup Node
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Setup Node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 #Setup Node
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ test-find find-test:
$(TS_NODE_BASE) $(cwd)tools/utils/find-tests.ts

.PHONY: test-only-run test-run-only
test-only-run:
test-only-run test-run-only:
$(KARMA) --browsers $(browsers) $(cwd)tools/karma.conf.ts --single-run $(singleRun) --build=$(build) --min=$(uglify) --fat=$(fat) --cwd=$(pwd)

.PHONY: coverage
Expand Down
9 changes: 8 additions & 1 deletion src/modules/file-browser/file-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,14 @@ export class FileBrowser extends ViewWithToolbar implements IFileBrowser, Dlgs {

this.e.fire('sort.filebrowser', this.state.sortBy);

loadTree(this).then(resolve, reject);
loadTree(this)
.then(resolve, reject)
.finally(() => {
if (this.isInDestruct) {
return;
}
this?.e?.fire('fileBrowserReady.filebrowser');
});
})
.catch((e: Error): void => {
if (!IS_PROD) {
Expand Down
Loading

0 comments on commit 8390840

Please sign in to comment.