feat: ability to have a user defined index #30
Workflow file for this run
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: Deno | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Verify formatting | |
run: deno fmt --check | |
- name: Run linter | |
run: deno lint | |
- name: Run tests | |
run: deno test -A --coverage=cov/ | |
env: | |
BLOG_NOTION_API_KEY: ${{ secrets.BLOG_NOTION_API_KEY }} | |
BLOG_NOTION_DATABASE_ID: ${{ secrets.BLOG_NOTION_DATABASE_ID }} | |
- name: Generate coverage | |
run: deno coverage --lcov cov/ > cov.lcov | |
- name: Upload coverage to Coveralls.io | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
path-to-lcov: cov.lcov |