Skip to content

Commit

Permalink
Merge pull request #44 from ar-io/alpha
Browse files Browse the repository at this point in the history
chore: setup codecoverage
  • Loading branch information
dtfiedler authored Apr 23, 2024
2 parents a81f10c + b68cde0 commit 1bb5aa5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node_version: [18.x, 20.x]
command: ['lint', 'format', 'test:integration', 'build']
command: ['lint', 'format', 'build']
steps:
- uses: actions/checkout@v4

Expand All @@ -24,3 +24,28 @@ jobs:
run: yarn --immutable --immutable-cache

- run: yarn ${{ matrix.command }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4

- name: Set Up node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable --immutable-cache

- name: Run tests
run: yarn test

- name: Upload coverage
uses: codecov/codecov-action@v4.0.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @ar-io/sdk

[![codecov](https://codecov.io/gh/ar-io/ar-io-sdk/graph/badge.svg?token=7dXKcT7dJy)](https://codecov.io/gh/ar-io/ar-io-sdk)

This is the home of [ar.io] SDK. This SDK provides functionality for interacting with the ar.io ecosystem of services (e.g. gateways and observers) and protocols (e.g. ArNS). It is available for both NodeJS and Web environments.

## Table of Contents
Expand Down
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 80%
threshold: 1%

0 comments on commit 1bb5aa5

Please sign in to comment.