Skip to content

chore: use workspace property and fix some type error #3100

chore: use workspace property and fix some type error

chore: use workspace property and fix some type error #3100

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: ${{ matrix.module }} ${{ matrix.os }} deno-${{ matrix.deno }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
module: [ansi, command, flags, keycode, keypress, prompt, table, testing]
os: [macOS-latest, windows-latest, ubuntu-latest]
deno: [v1.x]
env:
RUST_BACKTRACE: full
DENO_FUTURE: 1
CLIFFY_SNAPSHOT_DELAY: 2000
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Test ${{ matrix.module }}
run: deno task coverage:${{ matrix.module }}
- name: Upload ${{ matrix.module }} coverage
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.module }}-${{ matrix.os }}-${{ matrix.deno }}
files: dist/coverage/${{ matrix.module }}/cov.lcov
flags: ${{ matrix.module }}
token: ${{ secrets.CODECOV_TOKEN }}