File tree 7 files changed +33
-13
lines changed
7 files changed +33
-13
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
9
9
jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - uses : actions/setup-node@v2
17
+ with :
18
+ node-version : ' 12'
19
+ cache : ' yarn'
20
+
21
+ - name : Install dependencies
22
+ run : yarn install --frozen-lockfile --check-files
23
+
24
+ - name : Build
25
+ run : yarn build
26
+
10
27
test :
11
28
runs-on : ubuntu-latest
12
29
env :
26
43
27
44
- uses : actions/setup-node@v2
28
45
with :
29
- node-version : ' 14 '
46
+ node-version : ' 12 '
30
47
cache : ' yarn'
31
48
32
49
- name : Install dependencies
Original file line number Diff line number Diff line change 1
- # DealMore Sammy
1
+ # Sammy
2
2
3
3
A Node.js wrapper for [ AWS SAM CLI] ( https://aws.amazon.com/serverless/sam/ ) for local testing of Lambda functions.
4
4
@@ -40,7 +40,7 @@ import { generateAPISAM } from '@dealmore/sammy';
40
40
const lambdaSAM = await generateAPISAM ({
41
41
lambdas: {
42
42
first: {
43
- filename: ' first .zip' ,
43
+ filename: ' lambda .zip' ,
44
44
handler: ' handler.handler' ,
45
45
runtime: ' nodejs14.x' ,
46
46
route: ' /test' ,
Original file line number Diff line number Diff line change 8
8
"url" : " https://github.com/dealmore/sammy.git"
9
9
},
10
10
"scripts" : {
11
- "build" : " tsc" ,
11
+ "build" : " tsc --project tsconfig.build.json " ,
12
12
"test" : " jest" ,
13
13
"lint:prettier" : " prettier --check ." ,
14
14
"fix:prettier" : " prettier --write ."
23
23
"yaml" : " ^1.10.0"
24
24
},
25
25
"devDependencies" : {
26
+ "@tsconfig/node12" : " ^1.0.9" ,
26
27
"@types/archiver" : " ^5.1.1" ,
27
28
"@types/aws-lambda" : " ^8.10.71" ,
28
29
"@types/jest" : " ^27.0.1" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ jest.setTimeout(120_000);
13
13
describe ( 'integration:Event' , ( ) => {
14
14
describe ( 'single lambda' , ( ) => {
15
15
const functionName = 'first' ;
16
- const route = '/test' ;
17
16
let lambdaSAM : LocalSAMGenerator ;
18
17
let tmpdir : string ;
19
18
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "include" : [" lib/**/*" ]
4
+ }
Original file line number Diff line number Diff line change 1
1
{
2
+ "extends" : " @tsconfig/node12/tsconfig.json" ,
2
3
"compilerOptions" : {
3
- "target" : " es2019" ,
4
- "lib" : [" es2019" ],
5
4
"outDir" : " dist" ,
6
- "module" : " commonjs" ,
7
- "moduleResolution" : " node" ,
8
- "strict" : true ,
9
- "declaration" : true ,
10
- "sourceMap" : false ,
11
- "esModuleInterop" : true
5
+ "declaration" : true
12
6
},
13
7
"include" : [" lib/**/*" , " test/**/*" ]
14
8
}
Original file line number Diff line number Diff line change 506
506
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
507
507
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==
508
508
509
+ " @tsconfig/node12@^1.0.9 " :
510
+ version "1.0.9"
511
+ resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c"
512
+ integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==
513
+
509
514
" @types/archiver@^5.1.1 " :
510
515
version "5.1.1"
511
516
resolved "https://registry.yarnpkg.com/@types/archiver/-/archiver-5.1.1.tgz#d6d7610de4386b293abd5c1cb1875e0a4f4e1c30"
You can’t perform that action at this time.
0 commit comments