File tree 5 files changed +38
-2
lines changed
5 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 41
41
with :
42
42
python-version : 3.9
43
43
44
+ - name : Set up Node
45
+ uses : actions/setup-node@v3
46
+ with :
47
+ # Should be same version as in scripts/bootstrap.sh
48
+ node-version : ' 16.14.0'
49
+
44
50
- name : Install latest pipenv
45
51
run : |
46
52
python -m pip install --upgrade pipenv wheel
Original file line number Diff line number Diff line change 15
15
with :
16
16
python-version : 3.9
17
17
18
+ - name : Set up Node
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ # Should be same version as in scripts/bootstrap.sh
22
+ node-version : ' 16.14.0'
23
+
18
24
- name : Install latest pipenv
19
25
run : |
20
26
python -m pip install --upgrade pipenv wheel
Original file line number Diff line number Diff line change 37
37
run : |
38
38
sudo apt install -y gettext
39
39
40
+ - name : Set up Node
41
+ uses : actions/setup-node@v3
42
+ with :
43
+ # Should be same version as in scripts/bootstrap.sh
44
+ node-version : ' 16.14.0'
45
+
40
46
- name : Install latest pipenv
41
47
run : |
42
48
python -m pip install --upgrade pipenv wheel
@@ -99,6 +105,12 @@ jobs:
99
105
run : |
100
106
sudo apt install -y gettext
101
107
108
+ - name : Set up Node
109
+ uses : actions/setup-node@v3
110
+ with :
111
+ # Should be same version as in scripts/bootstrap.sh
112
+ node-version : ' 16.14.0'
113
+
102
114
- name : Install latest pipenv
103
115
run : |
104
116
python -m pip install --upgrade pipenv wheel
Original file line number Diff line number Diff line change 20
20
run : |
21
21
sudo apt install -y gettext
22
22
23
+ - name : Set up Node
24
+ uses : actions/setup-node@v3
25
+ with :
26
+ # Should be same version as in scripts/bootstrap.sh
27
+ node-version : ' 16.14.0'
28
+
23
29
- id : cache-pipenv
24
30
uses : actions/cache@v1
25
31
with :
Original file line number Diff line number Diff line change 1
- #! /bin/bash -e
1
+ #! /bin/bash
2
2
#
3
3
# Setup Project
4
4
5
+ set -e
6
+
5
7
# Argument parsing
6
8
pipenv_install_args=()
9
+ skip_nodeenv=false
7
10
8
11
while : ; do
9
12
case $1 in
10
13
--ci)
11
14
# Prevent the Pipfile.lock from being updated automatically. Just use
12
15
# the pinned dependencies.
13
16
pipenv_install_args+=( " --ignore-pipfile" )
17
+ # And assume that node has already been set up, as the CI system can
18
+ # cache that.
19
+ skip_nodeenv=true
14
20
;;
15
21
-h|-\? |--help|-?* )
16
22
echo " Usage: bootstrap.sh [--ci]" >&2
25
31
26
32
# Install things
27
33
pipenv install --dev --deploy " ${pipenv_install_args[@]} "
28
- pipenv run nodeenv -p --node=16.14.0
34
+ $skip_nodeenv || pipenv run nodeenv -p --node=16.14.0
29
35
pipenv run npm install -g
[email protected]
30
36
pipenv run yarn install --ignore-engines
You can’t perform that action at this time.
0 commit comments