-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathconfig.yml
55 lines (42 loc) · 1.3 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# gatsby-background-image Javascript Node CircleCI 2.1 configuration file
#
# Runs Jest & Integration tests, collects metadata and uploads to codecov.
#
version: 2.1
orbs:
# Use the codecov Orb
codecov: codecov/[email protected]
jobs:
build:
docker:
# Node 14 Image
- image: cimg/node:14.15.0
parallelism: 4
working_directory: ~/gatsby-background-image
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# Fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- run: yarn bootstrap
- run: yarn preintegration
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# Run the tests, store metadata and upload coverage data to codecov
- run:
name: "GBI Unit & Integration Tests"
command: yarn test:update --collectCoverage=true
environment:
JEST_JUNIT_OUTPUT: "coverage/junit/junit.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: coverage
- codecov/upload:
file: coverage/coverage-final.json