move out from src folder #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 sanity check | |
run: |- | |
[[ "$(deno run mod.ts < tests/sample.ts.md | deno run -)" == "10" ]] && echo ok | |
- name: Run tests | |
run: |- | |
deno test -A --quiet --coverage | |
deno coverage --lcov --output=cov.lcov | |
deno coverage | |
- name: Run publish --dry-run | |
run: deno publish --dry-run --allow-dirty | |
- name: Run codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./cov.lcov | |
token: ${{ secrets.CODECOV_TOKEN }} | |