Add node and git installation step for proper checkout in build workflow
This commit is contained in:
@@ -29,6 +29,23 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: php:8.5-cli
|
||||
steps:
|
||||
# MUSS vor dem Checkout stehen.
|
||||
#
|
||||
# actions/checkout ist eine JavaScript-Aktion. act_runner führt solche
|
||||
# Aktionen mit dem `node` AUS DEM JOB-CONTAINER aus -- anders als die
|
||||
# gehosteten Runner von GitHub, die ihr eigenes node mitbringen.
|
||||
# php:8.5-cli enthält weder node noch git, deshalb scheitert der Checkout
|
||||
# dort mit „exit code 127" (command not found), ohne eine Zeile Ausgabe.
|
||||
#
|
||||
# Dieser Schritt ist ein reines Shell-Kommando und braucht kein node,
|
||||
# läuft also auch im nackten Container.
|
||||
- name: git und node für den Checkout bereitstellen
|
||||
run: |
|
||||
set -eu
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends git nodejs curl ca-certificates
|
||||
echo "node $(node --version), $(git --version)"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Syntax aller PHP-Dateien prüfen
|
||||
|
||||
Reference in New Issue
Block a user