Skip to content

Commit

Permalink
v0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 14, 2023
1 parent f2f1b02 commit 67a8bbc
Show file tree
Hide file tree
Showing 29 changed files with 941 additions and 1,830 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,21 @@ jobs:
actions: write # for cancel-action
runs-on: ubuntu-latest
outputs:
version: ${{ steps.extract.outputs.version }}
version: ${{ steps.tea.outputs.version }}
commence: ${{ steps.rev-parse.outputs.result == 'commence' }}
steps:
- uses: actions/checkout@v3

- uses: teaxyz/setup@v0

- id: extract
name: determine current version
run: |
source <(tea -Eds)
echo "::set-output name=version::$VERSION"
if test x$VERSION = x; then exit 1; fi
env:
VERBOSE: 0
id: tea

- id: rev-parse
name: did we already publish this version?
run: |
# fetch tags since actions/checkout is a shallow checkout
git fetch --prune --unshallow --tags
if git show-ref --tags v${{ steps.extract.outputs.version }} --quiet; then
if git show-ref --tags v${{ steps.tea.outputs.version }} --quiet; then
echo "::set-output name=result::cancel"
else
echo "::set-output name=result::commence"
Expand Down Expand Up @@ -91,7 +83,7 @@ jobs:
srcroot: ${{ github.workspace }}

- run: sed -i.bak "s/^const version = .*$/const version = \"${{ steps.tea.outputs.version }}\"/" src/app.ts
- run: tea compile ./tea
- run: tea -XE deno task compile ./tea
- run: tar cJf tea-${{ steps.tea.outputs.version }}+${{ matrix.platform.build-id }}.tar.xz ./tea
- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -157,10 +149,6 @@ jobs:
body: ${{ steps.build_changelog.outputs.changelog }}
fail_on_unmatched_files: true

- uses: fischerscode/tagger@v0
with:
tag: ${{ env.TAG }}

upload-binaries:
needs: [release]
runs-on: ubuntu-latest
Expand Down
35 changes: 5 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,48 +24,23 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: teaxyz/setup@v0
- run: tea test
- run: tea -XE deno task test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: teaxyz/setup@v0
- run: tea deno lint
- run: tea -XE deno lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: teaxyz/setup@v0
- uses: actions/checkout@v3
with:
path: cli
- uses: actions/checkout@v3
with:
repository: teaxyz/pantry.core
path: pantry
- run: tea --cd cli typecheck
- run: tea --cd pantry typecheck # check we didn’t break the pantry

# disabled until exe/md supports stripping `$`
# test-exe-md:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os:
# - macos-latest
# - ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# repo: teaxyz/www
# - uses: teaxyz/setup@v0
# # execute run target from https://github.com/teaxyz/cli/blob/main/README.md#run
# # using "external `tea`", which will execute "`tea` from source", passing '.' to it
# # passing '.' to "`tea` from source" makes it build default README.md target
# - run: tea run .
- uses: teaxyz/setup@v0
- run: tea -XE deno task typecheck

# in stuations without `git` we had a softlock problem that we're testing for here
# in situations without `git` we had a softlock problem that we're testing for here
test-sync-lock:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/retagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: fischerscode/tagger@v0
with:
prefix: v
Loading

0 comments on commit 67a8bbc

Please sign in to comment.