Skip to content

Commit

Permalink
Add CI (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
roim authored Jul 20, 2021
1 parent edea514 commit 248f153
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: tests

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 13 * * *"

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: yarn test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![install size](https://packagephobia.com/badge?p=ip3country)](https://packagephobia.com/result?p=ip3country)
[![npm version](https://badge.fury.io/js/ip3country.svg)](https://badge.fury.io/js/ip3country) [![install size](https://packagephobia.com/badge?p=ip3country)](https://packagephobia.com/result?p=ip3country) [![tests](https://github.com/statsig-io/ip3country/actions/workflows/tests.yml/badge.svg)](https://github.com/statsig-io/ip3country/actions/workflows/tests.yml)

# ip3country

Expand Down Expand Up @@ -49,4 +49,4 @@ All variants of "ip2country" were already taken in npm, so we decided to step it

## Motivation

At [Statsig](https://www.statsig.com), we needed a library to evaluate location-based conditions on Feature Gates (Feature Flags). We use ip3country to power country-level rollouts or A/B tests for new features.
At [Statsig](https://www.statsig.com), we needed a library to evaluate location-based conditions on Feature Gates (Feature Flags). We use ip3country to power country-level rollouts or A/B tests for new features.

0 comments on commit 248f153

Please sign in to comment.