Skip to content

Commit

Permalink
ci(github): add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
cancue committed Apr 23, 2024
1 parent 9da16fd commit 8fe5551
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: codecov

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Cache
id: npm-cache
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}

- name: Install
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test -- --coverage

- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: notebox/nb-crdt
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# nb-crdt

[![codecov](https://codecov.io/gh/notebox/nb-crdt/graph/badge.svg?token=65QQDKPEPV)](https://codecov.io/gh/notebox/nb-crdt)
[![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/notebox)

A block based Conflict-free Replicated Data Type that enables collaborative editing across multiple participants allowing for flexible data sharing across spreadsheets, boards, rich text, and more.
Expand Down

0 comments on commit 8fe5551

Please sign in to comment.