Skip to content

Commit

Permalink
Merge pull request #7 from ronnelreposo/lazarus
Browse files Browse the repository at this point in the history
Lazarus
  • Loading branch information
ronnelreposo authored Mar 20, 2024
2 parents 027971f + 510b39f commit b2c1c1e
Show file tree
Hide file tree
Showing 9 changed files with 3,714 additions and 628 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
branches: [ test ]
pull_request:
branches: [ test ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test:ci
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Remote Data for Typescript

[![Test](https://github.com/ronnelreposo/adt-remote-data/actions/workflows/test.yml/badge.svg?branch=test)](https://github.com/ronnelreposo/adt-remote-data/actions/workflows/test.yml)

## Introduction

Remote Data is an Abstract Data Type (ADT) for respresenting data from remote sources.
Expand Down Expand Up @@ -27,9 +29,7 @@ npm install [email protected]

#### Constructors

##### notAsked `deprecated` use `NotAsked` constant instead.
##### NotAsked
##### loading `deprecated` use `Loading` constant instead.
##### Loading
##### failure
##### success
Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/src/test/**/*.test.ts'],
};
Loading

0 comments on commit b2c1c1e

Please sign in to comment.