From 25f8c62c5da937f5f6f019fc707455c9cedae3bb 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 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..77d24a3 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,35 @@ +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 + + - name: Run Codecov + uses: codecov/codecov-action@v4.0.1 + with: + slug: imcotton/at-key-gen-ssh-ed25519 + token: ${{ secrets.CODECOV_TOKEN }} +