diff --git a/.circleci/config.yml b/.circleci/config.yml index 07c03f0..fbc7ecd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ # version: 2.1 orbs: - unmock: unmock/unmock@volatile + unmock: unmock/unmock@dev:0.0.14 defaults: &defaults working_directory: ~/repo @@ -23,9 +23,22 @@ jobs: - persist_to_workspace: root: ~/repo paths: . - + server: + <<: *defaults + steps: + - checkout + - run: yarn + - run: + name: "Add __unmock__/petstore.swagger.io" + command: | + mkdir -p __unmock__ + git submodule add -f https://github.com/ksaaskil/petstore.swagger.io.git __unmock__/petstore.swagger.io + - unmock/start + - unmock/call + # - run: yarn test + - unmock/stop workflows: version: 2 test-and-build: jobs: - - build + - server diff --git a/.gitignore b/.gitignore index 39f39ae..e0c3765 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules dist test .env -__unmock__/ +__unmock__/*.html +__unmock__/*.log diff --git a/__unmock__/.gitkeep b/__unmock__/.gitkeep new file mode 100644 index 0000000..e69de29