diff --git a/.circleci/config.yml b/.circleci/config.yml index 5416419..67e661c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,33 +39,33 @@ jobs: # basic units of work in a run PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname) gotestsum --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES - - run: make # pull and build dependencies for the project + # - run: make # pull and build dependencies for the project - - save_cache: - key: go-mod-v4-{{ checksum "go.sum" }} - paths: - - "/go/pkg/mod" + # - save_cache: + # key: go-mod-v4-{{ checksum "go.sum" }} + # paths: + # - "/go/pkg/mod" - - run: - name: Start service - environment: - CONTACTS_DB_URL: "postgres://circleci-demo-go@localhost:5432/circle_test?sslmode=disable" - CONTACTS_DB_MIGRATIONS: /home/circleci/project/db/migrations - command: ./workdir/contacts - background: true # keep service running and proceed to next step + # - run: + # name: Start service + # environment: + # CONTACTS_DB_URL: "postgres://circleci-demo-go@localhost:5432/circle_test?sslmode=disable" + # CONTACTS_DB_MIGRATIONS: /home/circleci/project/db/migrations + # command: ./workdir/contacts + # background: true # keep service running and proceed to next step - - run: - name: Validate service is working - command: | - sleep 5 - curl --retry 10 --retry-delay 1 -X POST --header "Content-Type: application/json" -d '{"email":"test@example.com","name":"Test User"}' http://localhost:8080/contacts + # - run: + # name: Validate service is working + # command: | + # sleep 5 + # curl --retry 10 --retry-delay 1 -X POST --header "Content-Type: application/json" -d '{"email":"test@example.com","name":"Test User"}' http://localhost:8080/contacts - - store_artifacts: # upload test summary for display in Artifacts - path: /tmp/test-results - destination: raw-test-output + # - store_artifacts: # upload test summary for display in Artifacts + # path: /tmp/test-results + # destination: raw-test-output - - store_test_results: # upload test results for display in Test Summary - path: /tmp/test-results + # - store_test_results: # upload test results for display in Test Summary + # path: /tmp/test-results workflows: version: 2 build-workflow: