Browse Source

Update config.yml

circleci-project-setup
NicolasLepinette 6 years ago
committed by GitHub
parent
commit
b10640c05a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      .circleci/config.yml

43
.circleci/config.yml

@ -1,15 +1,34 @@
version: 2.1 # Use version 2.1 to enable orb usage.
orbs:
win: circleci/windows@2.2.0 # The Windows orb give you everything you need to start using the Windows executor.
version: 2.1
workflows:
build_and_test:
jobs:
- build
- test:
requires:
- build
jobs:
build: # name of your job
executor:
name: win/default # executor type
size: "medium" # resource class, can be "medium", "large", "xlarge", "2xlarge", defaults to "medium" if not specified
build:
docker:
- image: cimg/node:14.10.1
steps:
# Commands are run in a Windows virtual machine environment
- checkout
- run: Write-Host 'Hello, Windows'
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
test:
docker:
- image: cimg/node:14.10.1
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
- run: yarn test:ci
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
Loading…
Cancel
Save