You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve ruby command not found and add CI test stage
- Add 'rbenv rehash' after ruby install to generate shims
- Add 'rbenv rehash' after gem install to update shims
- Remove manual symlinks (PATH already includes shims directory)
- Add test job to verify:
- Default user is 'coder'
- All installed tools are accessible
- sudo works without password
- su command is blocked
- Mirror configurations are correct
if docker run --rm ${{ env.IMAGE_NAME }}:${{ env.DATE_TAG }} bash -c "sudo su - root" 2>&1 | grep -q "sudo: su: command not found\|Sorry, user coder is not allowed to execute"; then
253
+
echo "✓ su command is properly blocked"
254
+
else
255
+
echo "::warning::su command might not be properly blocked"
256
+
fi
257
+
258
+
- name: Test mirror configurations
259
+
run: |
260
+
echo "Testing mirror configurations..."
261
+
262
+
# Test Go proxy
263
+
docker run --rm ${{ env.IMAGE_NAME }}:${{ env.DATE_TAG }} bash -c 'echo $GOPROXY | grep -q "goproxy.cn"' && echo " ✓ Go proxy configured" || echo " ⚠ Go proxy not using goproxy.cn"
264
+
265
+
# Test npm registry
266
+
docker run --rm ${{ env.IMAGE_NAME }}:${{ env.DATE_TAG }} bash -c 'npm config get registry | grep -q "npmmirror"' && echo " ✓ npm registry configured" || echo " ⚠ npm registry not using npmmirror"
0 commit comments