Skip to content

Commit

Permalink
chore: remove travis, add GH actions
Browse files Browse the repository at this point in the history
chore: update to support node.js 18+
  • Loading branch information
evanshortiss committed Dec 13, 2024
1 parent 023a7f7 commit 82bed6c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion example/typescript/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ route.get(

// curl -X POST -F 'name=express' http://localhost:3030/hello
route.post('/', formidable(), validator.fields(schema), (req, res) => {
const vreq = req as ValidatedRequestWithRawInputsAndFields<
const vreq = (req as unknown) as ValidatedRequestWithRawInputsAndFields<
HelloPostRequestSchema
>

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@types/express": "~4.0.39",
"@types/express-formidable": "~1.0.4",
"@types/node": "~10.14.18",
"@types/node": "^18.19.68",
"@types/qs": "~6.9.3",
"body-parser": "~1.18.3",
"chai": "~3.5.0",
Expand All @@ -53,7 +53,7 @@
"qs": "~6.9.4",
"sinon": "~1.17.7",
"supertest": "~3.0.0",
"typescript": "~3.5.2"
"typescript": "^5.7.2"
},
"peerDependencies": {
"joi": "17"
Expand All @@ -64,7 +64,6 @@
"directories": {
"example": "example"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/evanshortiss/express-joi-validation.git"
Expand Down

0 comments on commit 82bed6c

Please sign in to comment.