diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5848d33 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: continuous-integration + +on: + push: + branches: [ master, v7 ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 10, 12, 14 ] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn --frozen-lockfile + + - name: ESLint + run: yarn lint + + - name: Unit tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f31b95..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - 10 - - 12 - - 14 - -script: - - npm run lint - - npm test diff --git a/README.md b/README.md index cd10dd3..9ac2d94 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Build Status](https://travis-ci.org/af/envalid.svg?branch=master)](https://travis-ci.org/af/envalid) - # Envalid Envalid is a small library for validating and accessing environment variables in