Skip to content

Feat/hook

Feat/hook #884

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Cache remote dependencies (optional)
run: deno cache main.ts || true
- name: Run tests
run: deno task test
- name: Generate coverage report
run: deno task cov
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: |
coverage.lcov
coverage/
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ./coverage.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}