Skip to content

test: Enforce tests for Setter #636

test: Enforce tests for Setter

test: Enforce tests for Setter #636

Workflow file for this run

name: Test
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Check format
run: |
deno fmt --check
deno lint
- name: Generate coverage
run: |
deno task coverage
deno coverage --lcov --output=coverage/cov.lcov coverage/cov_profile/
- uses: codecov/codecov-action@v4
with:
files: ./coverage/cov.lcov
name: mini-fn
verbose: true
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Dry run publish
run: deno publish --dry-run