From 1ef6419aa01273eff79c28c23a1b9f6c12b82fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E9=BA=A4=E8=A9=AD=E6=9C=AB?= <2682963017@qq.com> Date: Wed, 17 Jul 2024 05:01:53 +0800 Subject: [PATCH] Create deno.yml --- .github/workflows/deno.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 0000000..0e5032b --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,37 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will install Deno then run `deno lint` and `deno test`. +# For more information see: https://github.com/denoland/setup-deno + +name: Deno + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v4 + + - name: Setup Deno + uses: denoland/setup-deno@1 + with: + deno-version: v1.x + + - name: Run check + run: deno check ./main.ts + + - name: Run compile + run: deno task compile