File tree 1 file changed +59
-0
lines changed
1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This config was automatically generated from your source code
2
+ # Stacks detected: cicd:github-actions:.github/workflows,deps:node:.
3
+ version : 2.1
4
+ orbs :
5
+ node : circleci/node@5
6
+ jobs :
7
+ test-node :
8
+ # Install node dependencies and run tests
9
+ executor : node/default
10
+ steps :
11
+ - checkout
12
+ - node/install-packages :
13
+ cache-path : ~/project/node_modules
14
+ override-ci-command : npm install
15
+ - run :
16
+ name : Run tests
17
+ command : npm test --passWithNoTests
18
+ build-node :
19
+ # Build node project
20
+ executor : node/default
21
+ steps :
22
+ - checkout
23
+ - node/install-packages :
24
+ cache-path : ~/project/node_modules
25
+ override-ci-command : npm install
26
+ - run :
27
+ command : npm run build
28
+ - run :
29
+ name : Create the ~/artifacts directory if it doesn't exist
30
+ command : mkdir -p ~/artifacts
31
+ # Copy output to artifacts dir
32
+ - run :
33
+ name : Copy artifacts
34
+ command : cp -R build dist public .output .next .docusaurus ~/artifacts 2>/dev/null || true
35
+ - store_artifacts :
36
+ path : ~/artifacts
37
+ destination : node-build
38
+ deploy :
39
+ # This is an example deploy job, not actually used by the workflow
40
+ docker :
41
+ - image : cimg/base:stable
42
+ steps :
43
+ # Replace this with steps to deploy to users
44
+ - run :
45
+ name : deploy
46
+ command : ' #e.g. ./deploy.sh'
47
+ - run :
48
+ name : found github actions config
49
+ command : ' :'
50
+ workflows :
51
+ build-and-test :
52
+ jobs :
53
+ - test-node
54
+ - build-node :
55
+ requires :
56
+ - test-node
57
+ # - deploy:
58
+ # requires:
59
+ # - build-node
You can’t perform that action at this time.
0 commit comments