From 2083e20c720649bc14d427a9d6eafb378599035e Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 22 May 2023 09:22:01 -0400 Subject: [PATCH 1/2] cleaner ci output --- .github/workflows/cd.yml | 19 +++++++++---------- .github/workflows/ci.yml | 4 +++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 43e76ab..0eb5420 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -34,16 +34,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{github.token}} - # provided by ChatGPT - - name: Convert pre-release to release - run: | - curl -X PATCH \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -d '{"draft": false}' \ - "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}" - - tagger: + publish: permissions: contents: write needs: [build] @@ -53,3 +44,11 @@ jobs: - uses: fischerscode/tagger@v0 with: prefix: v + # provided by ChatGPT + - name: Convert pre-release to release + run: | + curl -fX PATCH \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + -d '{"draft": false}' \ + "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44bf96a..59038b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: teaxyz/setup@v0 - - run: deno task test --coverage=cov_profile + - run: deno cache + - run: deno task test --coverage=cov_profile --no-check + # ^^ no check as we have a separate type-checking step and it’s noise here - run: deno coverage cov_profile --lcov --exclude=tests/ --output=cov_profile.lcov - uses: coverallsapp/github-action@v1 with: From 39c30560c1ef580ae73e46718118d73698bd2dcd Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 22 May 2023 09:32:25 -0400 Subject: [PATCH 2/2] wip --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59038b5..1a8b115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: teaxyz/setup@v0 - - run: deno cache + - run: deno cache $(find . -name \*.ts) - run: deno task test --coverage=cov_profile --no-check # ^^ no check as we have a separate type-checking step and it’s noise here - run: deno coverage cov_profile --lcov --exclude=tests/ --output=cov_profile.lcov