Skip to content

Commit

Permalink
🐎 ci(test): Add Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowflyt committed Nov 4, 2024
1 parent 92961e0 commit 2a6175a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- run: npm ci

- name: Test
run: |
npm run test-types
npm run test:cov
- name: Report Coveralls
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Handle side effects in a <strong>unified</strong> way, with <strong>type-safety<
<a href="https://bundlephobia.com/package/tinyeffect">
<img src="https://img.shields.io/bundlephobia/minzip/tinyeffect.svg" alt="minzipped size" height="18">
</a>
<a href="https://github.com/Snowflyt/tinyeffect/actions/workflows/test.yml">
<img src="https://github.com/Snowflyt/tinyeffect/actions/workflows/test.yml/badge.svg" alt="test status" height="18">
</a>
<a href="https://coveralls.io/github/Snowflyt/tinyeffect?branch=main">
<img src="https://coveralls.io/repos/github/Snowflyt/tinyeffect/badge.svg?branch=main" alt="coverage status" height="18">
</a>
<a href="https://github.com/gvergnaud/tinyeffect">
<img src="https://img.shields.io/npm/l/tinyeffect.svg" alt="MIT license" height="18">
</a>
Expand Down

0 comments on commit 2a6175a

Please sign in to comment.