diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..3ae3591 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,15 @@ +steps: + - label: 'Test' + env: + SEGMENT_BUILDKITE_IMAGE: 'buildkite-agent-node12' + agents: + queue: v1 + commands: | + echo '--- Installing dependencies' + yarn + + echo '--- Lint' + yarn lint + + echo '--- Testing' + yarn test diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 13dfde3..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,69 +0,0 @@ -version: 2 -jobs: - setup: - working_directory: ~/fql-ts - docker: - - image: circleci/node:8.11 - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "yarn.lock" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - run: yarn install --frozen-lockfile - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "yarn.lock" }} - - persist_to_workspace: - root: . - paths: [.] - - build: - docker: - - image: circleci/node:8.11 - steps: - - attach_workspace: { at: . } - - run: yarn build - - snyk: - docker: - - image: circleci/node:8.11 - steps: - - attach_workspace: { at: . } - - run: - name: Snyk Setup - command: curl -sL https://raw.githubusercontent.com/segmentio/snyk_helpers/master/initialization/snyk.sh | sh - - lint: - docker: - - image: circleci/node:8.11 - steps: - - attach_workspace: { at: . } - - run: yarn lint - - test: - docker: - - image: circleci/node:8.11 - steps: - - attach_workspace: { at: . } - - run: yarn test - -workflows: - version: 2 - default: - jobs: - - setup - - build: - requires: [setup] - - snyk: - context: snyk - requires: [setup] - - lint: - requires: [setup] - - test: - requires: [setup]