diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e03fa4a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: [push, pull_request] + +env: + CI: true + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18, 20] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn --frozen-lockfile + + - name: Lint files + run: yarn lint + + - name: Run tests + run: yarn ava diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5958029..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - '10' - - '12' - - '14' -cache: - yarn: true - directories: - - node_modules diff --git a/README.md b/README.md index 0c3bf5c..2e5fad0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# http-stub [![Travis](https://travis-ci.com/Rowno/http-stub.svg?branch=master)](https://travis-ci.com/Rowno/http-stub) +# http-stub > Simple HTTP stubbing library for Node.js. diff --git a/package.json b/package.json index ade7aa6..f3c8050 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ } }, "engines": { - "node": ">=10" + "node": ">=16" }, "dependencies": { "@hapi/joi": "^16.0.0", @@ -55,11 +55,8 @@ "prettier" ], "env": { - "es2017": true, + "es2021": true, "node": true - }, - "parserOptions": { - "ecmaVersion": 2018 } }, "prettier": {