Skip to content

Commit

Permalink
dev-envs are formed by examining the files in CWD or parents
Browse files Browse the repository at this point in the history
* lots of stuff
* If no srcroot but {{}} in YAML-FM, still work
  • Loading branch information
mxcl authored Feb 1, 2023
1 parent fa7ef86 commit 7e1a9cf
Show file tree
Hide file tree
Showing 23 changed files with 527 additions and 392 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,22 @@ jobs:
- macos-latest
- ubuntu-latest
steps:
#TODO get desired deno version as an output from a pre-step
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1 # using ourself to install deno could compromise the tests
# prevent downloading the same files more than once during the integration tests
- run: mkdir -p ~/.tea/tea.xyz/var/www
- run: deno task test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: teaxyz/setup@v0
- uses: denoland/setup-deno@v1
- run: deno lint src/*/**.ts

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: teaxyz/setup@v0
- uses: denoland/setup-deno@v1
- run: deno task typecheck

# in situations without `git` we had a softlock problem that we're testing for here
Expand All @@ -59,8 +56,6 @@ jobs:
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v3
with:
path: cli

# denoland/setup requires `unzip` to be installed
- run: apt-get update && apt-get install unzip
Expand All @@ -69,21 +64,9 @@ jobs:
if: ${{ matrix.container == 'archlinux:latest' }}

- uses: denoland/setup-deno@v1
with:
deno-version: 1.29
#FIXME get it out the README
#NOTE we are avoiding using tea here for revlock reasons

- run: |
deno compile \
--allow-read \
--allow-write \
--allow-net \
--allow-run \
--allow-env \
--unstable \
--import-map=./cli/import-map.json \
--output /usr/local/bin/tea \
./cli/src/app.ts
deno task compile
mv tea /usr/local/bin
- run: tea -S +gnu.org/wget wget -L tea.xyz/white-paper/ | tea -S +charm.sh/glow glow -
14 changes: 1 addition & 13 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ tasks:
# runs during startup
(
set -e
# compile ./tea
.deno/bin/deno compile \
--allow-read \
--allow-write \
--allow-net \
--allow-run \
--allow-env \
--unstable \
--import-map="import-map.json" \
--output "./tea" \
"src/app.ts"
.deno/bin/deno task compile
echo "./tea is hot"
)
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"deno.importMap": "./import-map.json",
"deno.config": "./deno.jsonc",
"deno.importMap": "deno.jsonc",
"deno.config": "deno.jsonc",
"markdownlint.config": {
"extends": "./.github/markdownlint.yml"
}
}
}
Loading

0 comments on commit 7e1a9cf

Please sign in to comment.