fix(ci): install nodejs in build container before checkout action
This commit is contained in:
@@ -21,14 +21,15 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ghcr.io/cirruslabs/flutter:3.19.3
|
image: ghcr.io/cirruslabs/flutter:3.19.3
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Setup Node.js & Git for Actions
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Configure Git Safe Directory
|
|
||||||
run: |
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq nodejs ca-certificates
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
git config --global --add safe.directory '*'
|
git config --global --add safe.directory '*'
|
||||||
|
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Make Gradlew Executable
|
- name: Make Gradlew Executable
|
||||||
run: chmod +x android/gradlew
|
run: chmod +x android/gradlew
|
||||||
|
|
||||||
@@ -36,6 +37,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
flutter --version
|
flutter --version
|
||||||
java -version
|
java -version
|
||||||
|
node --version
|
||||||
|
|
||||||
- name: Fetch Flutter Dependencies
|
- name: Fetch Flutter Dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|||||||
@@ -21,14 +21,15 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ghcr.io/cirruslabs/flutter:3.19.3
|
image: ghcr.io/cirruslabs/flutter:3.19.3
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Setup Node.js & Git for Actions
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Configure Git Safe Directory
|
|
||||||
run: |
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq nodejs ca-certificates
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
git config --global --add safe.directory '*'
|
git config --global --add safe.directory '*'
|
||||||
|
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Make Gradlew Executable
|
- name: Make Gradlew Executable
|
||||||
run: chmod +x android/gradlew
|
run: chmod +x android/gradlew
|
||||||
|
|
||||||
@@ -36,6 +37,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
flutter --version
|
flutter --version
|
||||||
java -version
|
java -version
|
||||||
|
node --version
|
||||||
|
|
||||||
- name: Fetch Flutter Dependencies
|
- name: Fetch Flutter Dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|||||||
Reference in New Issue
Block a user