File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,20 @@ 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-
31+ # - uses: actions/checkout@v2
32+ # - name: Setup upterm session
33+ # uses: lhotari/action-upterm@v1
3334 - name : ' Deploy and test Staging'
3435 env :
3536 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
3637 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3738 SERVERLESS_ACCESS_KEY : ${{ secrets.SERVERLESS_ACCESS_KEY }}
3839 run : |
40+ npm ci
3941 cd services
40- for DIR in *; do (cd $DIR && npx sls deploy --stage staging --conceal && cd ..) & done; wait
42+ for DIR in *; do (cd $DIR && npx serverless deploy --stage staging && cd ..) & done; wait
4143 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
44+ for DIR in *; do (cd $DIR && npx serverless invoke test --compilers js:babel-core/register --stage staging && cd ..) & done; wait
4345 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