Skip to content

Commit ff6c7b0

Browse files
author
Michael Kaiser
committed
install eslint to not use docker for building
1 parent ace15ab commit ff6c7b0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build-pull-request.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
run: |
4646
# Create a temporary directory for build logs
4747
mkdir -p /tmp/build_logs
48-
48+
npm install -g eslint
49+
4950
# Function to build a single file
5051
build_file() {
5152
echo "Build File $1"
@@ -122,25 +123,25 @@ jobs:
122123
# Run the build_file function in parallel for each project to be built
123124
# Halt the execution if any of the build_file invocations fail
124125
parallel --keep-order --halt-on-error 2 build_file ::: "${apps_to_build[@]}"
125-
126+
126127
# Check the exit status of parallel
127128
parallel_exit=$?
128-
129+
129130
# If parallel succeeded, clean up node_modules and cdk.out to save space
130131
if [ $parallel_exit -eq 0 ]; then
131132
echo "::group::Cleaning up build artifacts"
132133
# Find all node_modules directories within the language directory and remove them
133134
echo "Removing node_modules directories..."
134135
find ./ -name "node_modules" -type d -prune -exec rm -rf {} \; 2>/dev/null || true
135-
136+
136137
# Find all cdk.out directories within the language directory and remove them
137138
echo "Removing cdk.out directories..."
138139
find ./ -name "cdk.out" -type d -prune -exec rm -rf {} \; 2>/dev/null || true
139-
140+
140141
echo "Cleanup completed"
141142
echo "::endgroup::"
142143
fi
143-
144+
144145
# If parallel failed, make sure the workflow fails too
145146
if [ $parallel_exit -ne 0 ]; then
146147
echo "::error::One or more builds failed. See error details above."

0 commit comments

Comments
 (0)