File tree Expand file tree Collapse file tree 17 files changed +340
-2814
lines changed Expand file tree Collapse file tree 17 files changed +340
-2814
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Install Dependencies'
2
+ description : ' Install dependencies with yarn and run security constraint checks'
3
+ inputs :
4
+ install-args :
5
+ description : ' Additional arguments for yarn install'
6
+ required : false
7
+ default : ' --inline-builds --mode=skip-build'
8
+ max-old-space-size :
9
+ description : ' Maximum old space size in MB for Node.js'
10
+ required : false
11
+ default : ' 8192'
12
+ ignore-scripts :
13
+ description : ' Whether to ignore npm scripts during install'
14
+ required : false
15
+ default : ' false'
16
+ runs :
17
+ using : ' composite'
18
+ steps :
19
+ - name : 🔨 Install
20
+ shell : bash
21
+ run : yarn install --immutable ${{ inputs.install-args }}
22
+ env :
23
+ NODE_OPTIONS : ' --max_old_space_size=${{ inputs.max-old-space-size }}'
24
+ npm_config_ignore_scripts : ${{ inputs.ignore-scripts }}
25
+
26
+ - name : 🛡️ Security Constraints Check
27
+ shell : bash
28
+ run : yarn constraints
Original file line number Diff line number Diff line change @@ -53,16 +53,18 @@ jobs:
53
53
with :
54
54
node-version : 18.12.0
55
55
56
+ - name : 🔨 Install
57
+ uses : ./.github/actions/install
58
+ with :
59
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
60
+
56
61
- name : 🔨 Build
57
62
run : |
58
- yarn install --immutable --inline-builds --mode=skip-build
59
63
yarn workspace @cardano-sdk/cardano-services-client build:cjs
60
64
yarn workspace @cardano-sdk/cardano-services build:cjs
61
65
yarn workspace @cardano-sdk/e2e build:cjs
62
66
yarn workspace @cardano-sdk/util-dev build:cjs
63
67
docker build --no-cache .
64
- env :
65
- NODE_OPTIONS : ' --max_old_space_size=8192'
66
68
67
69
- name : 🌐 Setup local test network
68
70
working-directory : packages/e2e
Original file line number Diff line number Diff line change 53
53
with :
54
54
node-version : 18.12.0
55
55
56
+ - name : 🔨 Install
57
+ uses : ./.github/actions/install
58
+ with :
59
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
60
+
56
61
- name : 🔨 Build
57
62
run : |
58
- yarn install --immutable --inline-builds --mode=skip-build
59
63
yarn workspace @cardano-sdk/cardano-services-client build:cjs
60
64
yarn workspace @cardano-sdk/cardano-services build:cjs
61
65
yarn workspace @cardano-sdk/e2e build:cjs
Original file line number Diff line number Diff line change @@ -25,10 +25,13 @@ jobs:
25
25
with :
26
26
node-version : 18.12.0
27
27
28
+ - name : 🔨 Install
29
+ uses : ./.github/actions/install
30
+ with :
31
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
32
+
28
33
- name : 🔨 Build
29
- run : |
30
- yarn install --immutable --inline-builds --mode=skip-build
31
- yarn build
34
+ run : yarn build
32
35
env :
33
36
NODE_OPTIONS : ' --max_old_space_size=8192'
34
37
Original file line number Diff line number Diff line change @@ -25,10 +25,13 @@ jobs:
25
25
with :
26
26
node-version : 18.12.0
27
27
28
+ - name : 🔨 Install
29
+ uses : ./.github/actions/install
30
+ with :
31
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
32
+
28
33
- name : 🔨 Build
29
- run : |
30
- yarn install --immutable --inline-builds --mode=skip-build
31
- yarn build
34
+ run : yarn build
32
35
env :
33
36
NODE_OPTIONS : ' --max_old_space_size=8192'
34
37
Original file line number Diff line number Diff line change @@ -67,10 +67,13 @@ jobs:
67
67
uses : actions/setup-node@v3
68
68
with :
69
69
node-version : 18.12.0
70
+ - name : 🔨 Install
71
+ uses : ./.github/actions/install
72
+ with :
73
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
74
+
70
75
- name : 🔨 Build
71
- run : |
72
- yarn install --immutable --inline-builds --mode=skip-build
73
- yarn workspace @cardano-sdk/util-dev build:cjs
76
+ run : yarn workspace @cardano-sdk/util-dev build:cjs
74
77
env :
75
78
NODE_OPTIONS : ' --max_old_space_size=8192'
76
79
- name : Run k6 cloud test
Original file line number Diff line number Diff line change @@ -59,10 +59,13 @@ jobs:
59
59
uses : actions/setup-node@v3
60
60
with :
61
61
node-version : 18.12.0
62
+ - name : 🔨 Install
63
+ uses : ./.github/actions/install
64
+ with :
65
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
66
+
62
67
- name : 🔨 Build
63
- run : |
64
- yarn install --immutable --inline-builds --mode=skip-build
65
- yarn workspace @cardano-sdk/util-dev build:cjs
68
+ run : yarn workspace @cardano-sdk/util-dev build:cjs
66
69
env :
67
70
NODE_OPTIONS : ' --max_old_space_size=8192'
68
71
- name : Run k6 cloud test
Original file line number Diff line number Diff line change @@ -17,11 +17,14 @@ jobs:
17
17
with :
18
18
node-version : 18.12.0
19
19
20
+ - name : 🔨 Install
21
+ uses : ./.github/actions/install
22
+ with :
23
+ max-old-space-size : ' 10240'
24
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
25
+
20
26
- name : 🔨 Build Docs
21
- env :
22
- NODE_OPTIONS : ' --max-old-space-size=10240'
23
27
run : |
24
- yarn install --immutable --inline-builds
25
28
yarn build
26
29
yarn docs
27
30
Original file line number Diff line number Diff line change 34
34
git_commit_gpgsign : true
35
35
36
36
- name : 💽 Install dependencies
37
- run : |
38
- yarn install --immutable --inline-builds --mode=skip-build
37
+ uses : ./.github/actions/install
38
+ with :
39
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
39
40
env :
40
41
YARN_ENABLE_IMMUTABLE_INSTALLS : false
41
42
Original file line number Diff line number Diff line change @@ -65,13 +65,15 @@ jobs:
65
65
with :
66
66
node-version : 18.12.0
67
67
68
+ - name : 🔨 Install
69
+ uses : ./.github/actions/install
70
+ with :
71
+ ignore-scripts : ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }}
72
+
68
73
- name : 🔨 Build
69
74
run : |
70
- yarn install --immutable --inline-builds --mode=skip-build
71
75
yarn build:cjs
72
76
docker build --no-cache .
73
- env :
74
- NODE_OPTIONS : ' --max_old_space_size=8192'
75
77
76
78
- name : 🔬 Test - e2e - wallet
77
79
env :
You can’t perform that action at this time.
0 commit comments