Skip to content

Commit

Permalink
Merge pull request #405 from getlift/serverless-v4
Browse files Browse the repository at this point in the history
Serverless v4 support
  • Loading branch information
mnapoli authored Aug 28, 2024
2 parents 0d56286 + 194ec41 commit 8c2716c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ jobs:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 14
- 16
- 18
- 20
serverless:
- "2.36.0"
- "2"
- "latest"
- "3"
- "4"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
Expand All @@ -42,11 +41,11 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- uses: actions/cache@v2
node-version: 20
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
Expand All @@ -57,11 +56,11 @@ jobs:
name: Type
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- uses: actions/cache@v2
node-version: 20
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"typescript": "^4.3.4"
},
"engines": {
"node": ">=14.15.0 <21"
"node": ">=14.15.0"
},
"files": [
"/dist"
Expand All @@ -83,6 +83,6 @@
},
"types": "dist/src/plugin.d.ts",
"peerDependencies": {
"serverless": "^2.36.0 || ^3"
"serverless": "^2.36.0 || ^3 || ^4"
}
}

0 comments on commit 8c2716c

Please sign in to comment.