Skip to content

docs(README): add shoutout to lefthook #31

docs(README): add shoutout to lefthook

docs(README): add shoutout to lefthook #31

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/test.yaml'
pull_request:
workflow_dispatch:
env:
CI: true
jobs:
Test:
if: github.repository == 'vnphanquang/githooks' # prevents this action from running on forks
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Lint
run: deno lint
- name: Run Tests
run: 'deno task ci:test'
- name: Generate --lcov coverage
run: 'deno task ci:coverage'
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
os: ${{ matrix.os }}
files: ./coverage/lcov.info
fail_ci_if_error: true
flags: unittests, ${{ matrix.os }}
token: ${{ secrets.CODECOV_TOKEN }}