Skip to content

Commit

Permalink
tea test & tea lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jul 11, 2022
1 parent 3063e0b commit e23df89
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ jobs:
- run: .github/mk-pantry-accessible.sh ${{ secrets.TEMP_JACOBS_GITHUB_PAT }}

- uses: teaxyz/setup@v0
- run: ./scripts/test.sh
with:
target: test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}

- name: Typecheck ./scripts/*
run: |
eval "$(tea -Eds)"
for x in scripts/*.ts; do
deno check --import-map=import-map.json $x
done
env:
VERBOSE: -1
- run: tea typecheck
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ Start a [discussion] and we’ll get back to you.
If you got this error message, you need to install tea:
`sh <(curl https://tea.xyz)`.
## Dependencies
| Project | Version |
Expand All @@ -531,6 +532,32 @@ If you got this error message, you need to install tea:
| tea.xyz | ^0 |
# Scripts
## Test
```sh
export TMPDIR=${TMPDIR:-/tmp}
deno test \
--allow-net \
--allow-read \
--allow-env=SRCROOT,GITHUB_TOKEN,TMPDIR \
--allow-run \
--import-map=$SRCROOT/import-map.json \
--allow-write="$TMPDIR" \
$SRCROOT/tests/*.ts
```
## Typecheck
```sh
for x in scripts/*.ts src/app.ts; do
deno check --import-map=$SRCROOT/import-map.json $x
done
```
[pantry]: ../../../../pantry
[VSCode]: https://code.visualstudio.com
[Markdown]: https://daringfireball.net/projects/markdown/
Expand Down
21 changes: 0 additions & 21 deletions scripts/test.sh

This file was deleted.

0 comments on commit e23df89

Please sign in to comment.