File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,17 @@ jobs:
2626 ${{ runner.os }}-build-${{ env.cache-name }}-
2727 ${{ runner.os }}-build-
2828 ${{ runner.os }}-
29-
3029 - name : Install dependencies
3130 run : npm ci
32-
3331 - name : ' Deploy and test Staging'
3432 env :
3533 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
3634 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3735 SERVERLESS_ACCESS_KEY : ${{ secrets.SERVERLESS_ACCESS_KEY }}
3836 run : |
37+ npm ci
3938 cd services
40- for DIR in *; do (cd $DIR && npx sls deploy --stage staging --conceal && cd ..) & done; wait
39+ for DIR in *; do (cd $DIR && npx serverless deploy --stage staging && cd ..) & done; wait
4140 echo "Finished deployment in staging"
42- for DIR in *; do (cd $DIR && npx sls invoke test --compilers js:babel-core/register --stage staging && cd ..) & done; wait
41+ for DIR in *; do (cd $DIR && npx serverless invoke test --compilers js:babel-core/register --stage staging && cd ..) & done; wait
4342 echo "Finished running tests in staging environment"
Original file line number Diff line number Diff line change 1+ cd services
2+ for DIR in *; do (cd $DIR && npx sls deploy --stage staging && cd ..) & done; wait
Original file line number Diff line number Diff line change 33// tests for hello
44// Generated by serverless-mocha-plugin
55
6+
67import mochaPlugin from 'serverless-mocha-plugin' ;
78const expect = mochaPlugin . chai . expect ;
89const wrapped = mochaPlugin . getWrapper ( 'hello' , '/handler.js' , 'hello' ) ;
You can’t perform that action at this time.
0 commit comments