Skip to content

Commit fc38912

Browse files
committed
build: initialize development environment in workflow
1 parent b77ddf7 commit fc38912

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/lint_autofix.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@
9797
# File path to checkout to:
9898
path: './'
9999

100+
# Install Node.js:
101+
- name: 'Install Node.js'
102+
# Pin action to full length commit SHA
103+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
104+
with:
105+
node-version: '20' # 'lts/*'
106+
timeout-minutes: 5
107+
108+
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
109+
- name: 'Install dependencies'
110+
run: |
111+
make install-node-modules || make install-node-modules || make install-node-modules
112+
timeout-minutes: 15
113+
114+
# Initialize development environment:
115+
- name: 'Initialize development environment'
116+
run: |
117+
make init
118+
timeout-minutes: 5
119+
100120
# Get list of changed files:
101121
- name: 'Get list of changed files'
102122
id: changed-files

0 commit comments

Comments
 (0)