From 99da53ce30f5604b2c6db42aed78722697e8ca18 Mon Sep 17 00:00:00 2001 From: chinodesuuu Date: Tue, 27 Aug 2024 14:17:34 +0000 Subject: [PATCH] Add Deno CI (may fail) Signed-off-by: chinodesuuu --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8001e5c1..87f98bb3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,37 @@ on: branches: ["**"] jobs: + test-deno: + runs-on: ubuntu-latest + + strategy: + matrix: + deno-version: [canary, v1.46.1] + + steps: + - uses: actions/checkout@v4.1.7 + + - name: Setup Deno ${{ matrix.bun-version }} + uses: denoland/setup-deno@v1 + with: + deno-version: ${{ matrix.deno-version }} + + - name: Get Dependencies + run: deno install + + - name: Get CodeClimate Coverage + run: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + ./cc-test-reporter before-build + + - name: Test + run: | + echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env + deno task coverage:deno + ./cc-test-reporter after-build --exit-code $(echo $?) + env: + CC_TEST_REPORTER_ID: bda3746e9ecd039cee2dcfb3c1e4efc59c712a40fa3b9316e281eb00d61c613e test: runs-on: ubuntu-latest