Skip to content

Commit

Permalink
test: add tests for api/encode.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSolati committed Jun 28, 2020
1 parent 246cc64 commit 11e5667
Show file tree
Hide file tree
Showing 8 changed files with 1,930 additions and 47 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and Test
on: [pull_request, push]
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
jobs:
lint_and_test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: NPM Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm install --ignore-scripts
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Coverage
run: npm run coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![npm](https://img.shields.io/npm/v/geofirestore-core)](https://www.npmjs.com/package/geofirestore-core)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/geofirestore-core)](https://bundlephobia.com/result?p=geofirestore-core)
[![Lint and Test](https://github.com/MichaelSolati/geofirestore-core/workflows/Lint%20and%20Test/badge.svg?branch=dev)](https://github.com/MichaelSolati/geofirestore-core/actions?query=workflow%3A%22Lint+and+Test%22)
[![Coveralls github](https://img.shields.io/coveralls/github/MichaelSolati/geofirestore-core)](https://coveralls.io/github/MichaelSolati/geofirestore-core)
[![David](https://img.shields.io/david/michaelsolati/geofirestore-core)](https://david-dm.org/michaelsolati/geofirestore-core)
[![GitHub stars](https://img.shields.io/github/stars/MichaelSolati/geofirestore-core)](https://github.com/MichaelSolati/geofirestore-core/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/MichaelSolati/geofirestore-core)](https://github.com/MichaelSolati/geofirestore-core/network/members)
Expand Down
Loading

0 comments on commit 11e5667

Please sign in to comment.