diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5710340 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: "Tests" + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + - uses: actions/cache@v2 + with: + path: ~/.elm + key: ${{ runner.os }}-elm-${{ hashFiles('package-lock.json', 'elm-tooling.json', 'elm.json') }} + - run: npm ci + - run: npm test diff --git a/README.md b/README.md index 7a3090f..af98c42 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Maybe.Extra +[![Build Status](https://github.com/elm-community/maybe-extra/workflows/test.yml/badge.svg)](https://github.com/elm-community/maybe-extra/actions) + Convenience functions for working with Maybe ## Contributing