From f7e8277a21bf484522c90e5bb9ecbeeb416bc2c9 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sun, 10 Mar 2024 09:52:46 +0800 Subject: [PATCH] default CI checking --- .github/workflows/check.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..5bfbe84 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,29 @@ +name: Checking + +on: push + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v4 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run linter + run: deno lint + + - name: Run tests + run: |- + deno test --quiet --coverage + deno coverage --lcov --output=cov.lcov + deno coverage +