Skip to content

temp move reference out of pages (nextra display api with directories… #55

temp move reference out of pages (nextra display api with directories…

temp move reference out of pages (nextra display api with directories… #55

name: Test Coverage
on:
push:
branches: [main]
# Only install and test in the db for now
defaults:
run:
working-directory: packages/db
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install modules
run: yarn install
- name: Run unit tests with coverage
run: |
SUMMARY="$(yarn test-ci | tail -2 | head -1)"
TOKENS=($SUMMARY)
echo "COVERAGE=$(echo ${TOKENS[2]})" >> $GITHUB_ENV
- name: Create Coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: f5f2c109373b081a8d894d8289f135e3
filename: triplit_coverage.json
label: coverage
message: ${{ env.COVERAGE }}
namedLogo: vitest
color: blue
logoColor: yellow