serverless-offline-scheduler
Version:
Serverless plugin to run scheduled lambdas with serverless offline
40 lines (32 loc) • 871 B
YAML
version: 2
jobs:
build:
working_directory: ~/ajmath/serverless-offline-scheduler
parallelism: 1
shell: /bin/bash --login
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
docker:
- image: circleci/node:erbium-stretch
steps:
- checkout
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- restore_cache:
keys:
- v1-dep-{{ .Branch }}-
- v1-dep-master-
- v1-dep-
- run: yarn
- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- ~/.cache/yarn
- ./node_modules
- run: yarn test
- store_test_results:
path: /tmp/circleci-test-results
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results