Skip to content

Commit 1e2afce

Browse files
authored
Update config.yml
1 parent 7ac2ad2 commit 1e2afce

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.circleci/config.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ jobs:
1313
name: Install Dependencies
1414
command: npm install
1515

16-
# Ensure ./dist directory exists
16+
# Create artifacts in /tmp
1717
- run:
18-
name: Create Dist Directory
19-
command: mkdir -p ./dist
18+
name: Create Artifacts
19+
command: |
20+
echo "Dummy Artifact Content" > /tmp/dummy.txt
21+
mkdir /tmp/artifacts
22+
echo "Additional Artifact Content" > /tmp/artifacts/extra.txt
2023
21-
# Create a dummy artifact (text file) for example
22-
- run:
23-
name: Create Dummy Artifact
24-
command: echo "Dummy Artifact Content" > ./dist/dummy.txt
24+
# Store artifacts
25+
- store_artifacts:
26+
path: /tmp/dummy.txt
27+
destination: artifacts
2528

26-
# Save artifacts to workspace
27-
- persist_to_workspace:
28-
root: .
29-
paths:
30-
- ./dist # Assuming your build output is in a 'dist' directory
29+
- store_artifacts:
30+
path: /tmp/artifacts
31+
destination: artifacts
3132

3233
test:
3334
docker:
@@ -36,19 +37,18 @@ jobs:
3637
steps:
3738
- checkout
3839

39-
# Restore dependencies
40-
- run:
41-
name: Install Dependencies
42-
command: npm install
43-
4440
# Attach workspace to access artifacts
4541
- attach_workspace:
4642
at: .
4743

4844
# Run your test steps using the artifacts from the workspace...
4945
- run:
5046
name: Display Dummy Artifact Content
51-
command: cat ./dist/dummy.txt
47+
command: cat ./artifacts/dummy.txt
48+
49+
- run:
50+
name: Display Additional Artifact Content
51+
command: cat ./artifacts/extra.txt
5252

5353
workflows:
5454
version: 2

0 commit comments

Comments
 (0)