Created
February 22, 2022 14:49
-
-
Save Lobbyra/f238dcab107d699fe87e0055a747e506 to your computer and use it in GitHub Desktop.
[ETELCODE] Working, first version of the POC of ci cd pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' | |
version: 2.1 | |
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. | |
# See: https://circleci.com/docs/2.0/orb-intro/ | |
orbs: | |
node: circleci/[email protected] | |
jobs: | |
main: | |
docker: | |
- image: 'cimg/base:stable' | |
steps: | |
- checkout | |
- node/install: | |
install-yarn: true | |
node-version: "16.13" | |
- restore_cache: | |
name: "Restore yarn cache if exists" | |
keys: | |
- yarn-packages-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | |
- run: | |
name: "install" | |
command: yarn install | |
- save_cache: | |
name: "Save yarn cache" | |
paths: | |
- node_modules | |
key: yarn-packages-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | |
- run: | |
name: "linting" | |
command: yarn run lint | |
- run: | |
name: "build" | |
command: yarn run build | |
- run: | |
name: "test" | |
command: yarn run test | |
# Invoke jobs via workflows | |
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows | |
workflows: | |
push: # 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: | |
- main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment