diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..2cc298f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,12 @@ +name: tests +on: [push] +jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci + - run: npm test diff --git a/README.md b/README.md index 0dd2364..1359b37 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Redux thaga +![tests](https://github.com/HVish/redux-thaga/actions/workflows/test.yml/badge.svg) + This redux middleware enhances redux-saga with redux-thunk capabilites. ## Usage