From cebfc01ab72de7dfc6b3a4f8898cab5521ace39e Mon Sep 17 00:00:00 2001 From: Vendetta26 <54936519+Vendetta26@users.noreply.github.com> Date: Sun, 28 Nov 2021 12:29:56 +0200 Subject: [PATCH 1/2] Add .circleci/config.yml --- .circleci/config.yml | 55 +++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c4ef915c3..0198d6efe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,37 +1,34 @@ -version: 2 +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - build: + # Below is the definition of your job to build and test your app, you can rename and customize it as you want. + build-and-test: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + # Be sure to update the tag on this image to a more stable version, using latest can result in unstable builds. docker: - - image: circleci/node:9.11.1 - working_directory: ~/repo + - image: microsoft/dotnet:latest + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: + # Checkout the code as the first step. - checkout - - add_ssh_keys: # add SSH key with write access - fingerprints: - - "02:d5:63:28:6b:94:5d:76:08:42:ab:1e:b2:b7:80:bb" - - "c4:87:62:5a:20:92:4e:14:e0:e0:59:4c:41:f3:43:55" - - restore_cache: - keys: - - yarn-packages-{{ checksum "yarn.lock" }} - - run: - name: Install dependencies - command: yarn install --frozen-lockfile + # Then simply use the dotnet container as you'd expect and run your tests - run: - name: Publish update to GitHub - command: bash ./deploy.sh - - save_cache: - name: Save Yarn Package Cache - key: yarn-packages-{{ checksum "yarn.lock" }} - paths: - - ~/.cache/yarn + # Update this line with the directory that contains your tests project file + working_directory: ~/project/App.Tests + name: Run tests + command: | + dotnet test +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - version: 2 - build-deploy: + sample: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. jobs: - - build: - filters: - branches: - only: - - dev - - test \ No newline at end of file + - build-and-test From 662596903f17238388b783b46c5980b466128d22 Mon Sep 17 00:00:00 2001 From: Vendetta26 <54936519+Vendetta26@users.noreply.github.com> Date: Sun, 28 Nov 2021 14:56:35 +0200 Subject: [PATCH 2/2] Add .circleci/config.yml