Skip to content

Commit

Permalink
Replace Travis with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowno committed Dec 1, 2023
1 parent bf24e11 commit 28f219b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 15 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
},
"engines": {
"node": ">=10"
"node": ">=16"
},
"dependencies": {
"@hapi/joi": "^16.0.0",
Expand Down Expand Up @@ -55,11 +55,8 @@
"prettier"
],
"env": {
"es2017": true,
"es2021": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018
}
},
"prettier": {
Expand Down

0 comments on commit 28f219b

Please sign in to comment.