-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
116 additions
and
11 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
.github/workflows/extensions.yaml → .github/workflows/jupyterlab.yaml
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Positron | ||
on: | ||
workflow_call: | ||
jobs: | ||
native: | ||
env: | ||
DOCKER: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: [macos-latest, windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: extractions/setup-just@v1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- run: just positron | ||
docker: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: [ubuntu-latest] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/setup | ||
- run: just positron |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
out | ||
dist | ||
node_modules | ||
.vscode-test-web/ | ||
.vscode-test/ | ||
*.vsix | ||
5 |
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,60 @@ | ||
alias c := clean | ||
alias i := install | ||
alias t := test | ||
|
||
_ci := env_var_or_default("CI", "false") | ||
|
||
_debug := env_var_or_default("DEBUG", "false") | ||
|
||
_with_debug := if _debug == "true" { | ||
"set -x pipefail" | ||
} else { | ||
"" | ||
} | ||
|
||
default: | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
{{ _with_debug }} | ||
just install | ||
just test | ||
|
||
# Deletes ephemeral project files (i.e., cleans the project). | ||
clean: | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
{{ _with_debug }} | ||
rm -rf node_modules | ||
|
||
|
||
# Install dependencies | ||
install: | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
{{ _with_debug }} | ||
npm install | ||
|
||
# Executes commands via `npm`. Equivalent to `npm run`. Provides arbitrary command chaining inside of Docker from project root (i.e., `just positron run test`) | ||
run *args: | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
{{ _with_debug }} | ||
npm run {{ args }} | ||
|
||
|
||
# Executes Cypress tests | ||
test: | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
{{ _with_debug }} | ||
echo {{ os() }} | ||
if [ {{ os() }} == "linux" ]; then | ||
xvfb-run -a npm test | ||
else | ||
npm test | ||
fi |
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