Skip to content

Commit 545095f

Browse files
committed
chore(ci): minor fix
- remove file option from codecov reporter
1 parent 788736c commit 545095f

2 files changed

Lines changed: 166 additions & 167 deletions

File tree

.github/workflows/qa.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ jobs:
9595
- name: Upload Coverage Report
9696
uses: codecov/codecov-action@v5 #2db07e317924c76f654a414629d71c65876882e2 v5.4.3
9797
with:
98-
file: coverage/clover.xml
9998
token: ${{ secrets.CODECOV_TOKEN }}
10099
flags: test-coverage
101100

[.circleci]/config.yml

Lines changed: 166 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,166 @@
1-
version: 2.1
2-
3-
# define constants
4-
aliases:
5-
- &working_directory ~/commercetools-sdk-typescript
6-
7-
# node version 18
8-
- &restore_yarn_cache_node_18
9-
name: 'Restoring yarn cache'
10-
keys:
11-
- yarn-cache-node_18-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
12-
13-
- &save_yarn_cache_node_18
14-
name: 'Saving yarn cache'
15-
key: yarn-cache-node_18-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
16-
paths:
17-
- ~/.cache/yarn
18-
19-
20-
# node version 20
21-
- &restore_yarn_cache_node_20
22-
name: 'Restoring yarn cache'
23-
keys:
24-
- yarn-cache-node_20-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
25-
26-
- &save_yarn_cache_node_20
27-
name: 'Saving yarn cache'
28-
key: yarn-cache-node_20-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
29-
# Persisting to the workspace is always relative to the root which is our working directory.
30-
# https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
31-
paths:
32-
- ~/.cache/yarn
33-
34-
# node version 22
35-
- &restore_yarn_cache_node_22
36-
name: 'Restoring yarn cache'
37-
keys:
38-
- yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
39-
40-
- &save_yarn_cache_node_22
41-
name: 'Saving yarn cache'
42-
key: yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
43-
# Persisting to the workspace is always relative to the root which is our working directory.
44-
# https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
45-
paths:
46-
- ~/.cache/yarn
47-
48-
# executors
49-
executors:
50-
node_18:
51-
docker:
52-
- image: cimg/node:18.20.8
53-
working_directory: *working_directory
54-
55-
node_20:
56-
docker:
57-
- image: cimg/node:20.19.1
58-
working_directory: *working_directory
59-
60-
node_22:
61-
docker:
62-
- image: cimg/node:22.15.0
63-
working_directory: *working_directory
64-
65-
66-
# orbs
67-
orbs:
68-
codecov: codecov/codecov@4.2.0
69-
70-
# jobs
71-
jobs:
72-
install_test_node_18:
73-
executor: node_18
74-
steps:
75-
- checkout
76-
- restore_cache: *restore_yarn_cache_node_18
77-
- run:
78-
name: Installing dependencies
79-
command: yarn install --frozen-lockfile
80-
- save_cache: *save_yarn_cache_node_18
81-
- run:
82-
name: Install example dependencies
83-
command: |
84-
cd examples
85-
yarn install --frozen-lockfile
86-
- run:
87-
name: Building packages
88-
command: yarn build
89-
- run:
90-
name: Running example tests
91-
command: |
92-
cd examples
93-
yarn test
94-
- run:
95-
name: Running tests
96-
command: yarn test:unit
97-
98-
install_test_node_20:
99-
executor: node_20
100-
steps:
101-
- checkout
102-
- restore_cache: *restore_yarn_cache_node_20
103-
- run:
104-
name: Installing dependencies
105-
command: yarn install --frozen-lockfile
106-
- save_cache: *save_yarn_cache_node_20
107-
- run:
108-
name: Install example dependencies
109-
command: |
110-
cd examples
111-
yarn install --frozen-lockfile
112-
- run:
113-
name: Building packages
114-
command: yarn build
115-
- run:
116-
name: Running example tests
117-
command: |
118-
cd examples
119-
yarn test
120-
- run:
121-
name: Running tests
122-
command: yarn test:unit
123-
124-
install_test_node_22:
125-
executor: node_22
126-
steps:
127-
- checkout
128-
- restore_cache: *restore_yarn_cache_node_22
129-
- run:
130-
name: Installing dependencies
131-
command: yarn install --frozen-lockfile
132-
- save_cache: *save_yarn_cache_node_22
133-
- run:
134-
name: Install example dependencies
135-
command: |
136-
cd examples
137-
yarn install --frozen-lockfile
138-
- run:
139-
name: Building packages
140-
command: yarn build
141-
- run:
142-
name: Running example tests
143-
command: |
144-
cd examples
145-
yarn test
146-
- run:
147-
name: Running tests
148-
command: JEST_TIMEOUT=180000 yarn test --coverage
149-
- codecov/upload:
150-
file: coverage/clover.xml
151-
flags: 'test-coverage'
152-
153-
# workflows
154-
workflows:
155-
version: 2
156-
build_and_test:
157-
jobs:
158-
- install_test_node_18:
159-
context: org-global
160-
- install_test_node_20:
161-
context: org-global
162-
- install_test_node_22:
163-
context: org-global
164-
requires:
165-
- install_test_node_18
166-
- install_test_node_20
1+
# version: 2.1
2+
3+
# # define constants
4+
# aliases:
5+
# - &working_directory ~/commercetools-sdk-typescript
6+
7+
# # node version 18
8+
# - &restore_yarn_cache_node_18
9+
# name: 'Restoring yarn cache'
10+
# keys:
11+
# - yarn-cache-node_18-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
12+
13+
# - &save_yarn_cache_node_18
14+
# name: 'Saving yarn cache'
15+
# key: yarn-cache-node_18-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
16+
# paths:
17+
# - ~/.cache/yarn
18+
19+
20+
# # node version 20
21+
# - &restore_yarn_cache_node_20
22+
# name: 'Restoring yarn cache'
23+
# keys:
24+
# - yarn-cache-node_20-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
25+
26+
# - &save_yarn_cache_node_20
27+
# name: 'Saving yarn cache'
28+
# key: yarn-cache-node_20-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
29+
# # Persisting to the workspace is always relative to the root which is our working directory.
30+
# # https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
31+
# paths:
32+
# - ~/.cache/yarn
33+
34+
# # node version 22
35+
# - &restore_yarn_cache_node_22
36+
# name: 'Restoring yarn cache'
37+
# keys:
38+
# - yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
39+
40+
# - &save_yarn_cache_node_22
41+
# name: 'Saving yarn cache'
42+
# key: yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
43+
# # Persisting to the workspace is always relative to the root which is our working directory.
44+
# # https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
45+
# paths:
46+
# - ~/.cache/yarn
47+
48+
# # executors
49+
# executors:
50+
# node_18:
51+
# docker:
52+
# - image: cimg/node:18.20.8
53+
# working_directory: *working_directory
54+
55+
# node_20:
56+
# docker:
57+
# - image: cimg/node:20.19.1
58+
# working_directory: *working_directory
59+
60+
# node_22:
61+
# docker:
62+
# - image: cimg/node:22.15.0
63+
# working_directory: *working_directory
64+
65+
66+
# # orbs
67+
# orbs:
68+
# codecov: codecov/codecov@4.2.0
69+
70+
# # jobs
71+
# jobs:
72+
# install_test_node_18:
73+
# executor: node_18
74+
# steps:
75+
# - checkout
76+
# - restore_cache: *restore_yarn_cache_node_18
77+
# - run:
78+
# name: Installing dependencies
79+
# command: yarn install --frozen-lockfile
80+
# - save_cache: *save_yarn_cache_node_18
81+
# - run:
82+
# name: Install example dependencies
83+
# command: |
84+
# cd examples
85+
# yarn install --frozen-lockfile
86+
# - run:
87+
# name: Building packages
88+
# command: yarn build
89+
# - run:
90+
# name: Running example tests
91+
# command: |
92+
# cd examples
93+
# yarn test
94+
# - run:
95+
# name: Running tests
96+
# command: yarn test:unit
97+
98+
# install_test_node_20:
99+
# executor: node_20
100+
# steps:
101+
# - checkout
102+
# - restore_cache: *restore_yarn_cache_node_20
103+
# - run:
104+
# name: Installing dependencies
105+
# command: yarn install --frozen-lockfile
106+
# - save_cache: *save_yarn_cache_node_20
107+
# - run:
108+
# name: Install example dependencies
109+
# command: |
110+
# cd examples
111+
# yarn install --frozen-lockfile
112+
# - run:
113+
# name: Building packages
114+
# command: yarn build
115+
# - run:
116+
# name: Running example tests
117+
# command: |
118+
# cd examples
119+
# yarn test
120+
# - run:
121+
# name: Running tests
122+
# command: yarn test:unit
123+
124+
# install_test_node_22:
125+
# executor: node_22
126+
# steps:
127+
# - checkout
128+
# - restore_cache: *restore_yarn_cache_node_22
129+
# - run:
130+
# name: Installing dependencies
131+
# command: yarn install --frozen-lockfile
132+
# - save_cache: *save_yarn_cache_node_22
133+
# - run:
134+
# name: Install example dependencies
135+
# command: |
136+
# cd examples
137+
# yarn install --frozen-lockfile
138+
# - run:
139+
# name: Building packages
140+
# command: yarn build
141+
# - run:
142+
# name: Running example tests
143+
# command: |
144+
# cd examples
145+
# yarn test
146+
# - run:
147+
# name: Running tests
148+
# command: JEST_TIMEOUT=180000 yarn test --coverage
149+
# - codecov/upload:
150+
# file: coverage/clover.xml
151+
# flags: 'test-coverage'
152+
153+
# # workflows
154+
# workflows:
155+
# version: 2
156+
# build_and_test:
157+
# jobs:
158+
# - install_test_node_18:
159+
# context: org-global
160+
# - install_test_node_20:
161+
# context: org-global
162+
# - install_test_node_22:
163+
# context: org-global
164+
# requires:
165+
# - install_test_node_18
166+
# - install_test_node_20

0 commit comments

Comments
 (0)