Fix Node.js executable error in Forgejo Actions workflows
Some checks failed
Build Docker Image / build (push) Failing after 31s
Minimal CI / test (push) Failing after 10s
Node+Ruby CI Pipeline / build (push) Blocked by required conditions
Node+Ruby CI Pipeline / notify (push) Blocked by required conditions
CI Pipeline / test (push) Failing after 36s
Build and Push Docker Image / test (push) Failing after 12s
Build Docker Image / notify (push) Failing after 1s
CI Pipeline / build (push) Has been skipped
Build and Push Docker Image / build (push) Has been skipped
Simple CI Pipeline / build (push) Has been skipped
CI Pipeline / notify (push) Successful in 1s
Simple CI Pipeline / notify (push) Successful in 1s
Simple CI Pipeline / test (push) Failing after 1s
Run Tests / test (push) Failing after 12s
Minimal CI / build (push) Has been skipped
Node+Ruby CI Pipeline / test (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Failing after 31s
Minimal CI / test (push) Failing after 10s
Node+Ruby CI Pipeline / build (push) Blocked by required conditions
Node+Ruby CI Pipeline / notify (push) Blocked by required conditions
CI Pipeline / test (push) Failing after 36s
Build and Push Docker Image / test (push) Failing after 12s
Build Docker Image / notify (push) Failing after 1s
CI Pipeline / build (push) Has been skipped
Build and Push Docker Image / build (push) Has been skipped
Simple CI Pipeline / build (push) Has been skipped
CI Pipeline / notify (push) Successful in 1s
Simple CI Pipeline / notify (push) Successful in 1s
Simple CI Pipeline / test (push) Failing after 1s
Run Tests / test (push) Failing after 12s
Minimal CI / build (push) Has been skipped
Node+Ruby CI Pipeline / test (push) Has been cancelled
- Install Node.js before checkout in all workflows that use actions - Updated ci.yml, test.yml, build.yml, and docker.yml - Updated README.md with fix information - Resolves "exec: node: executable file not found in $PATH" error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
95ba7f39c1
commit
e294b9b1a3
5 changed files with 28 additions and 15 deletions
|
@ -174,9 +174,10 @@ git push origin feature-branch
|
||||||
exec: "node": executable file not found in $PATH: unknown
|
exec: "node": executable file not found in $PATH: unknown
|
||||||
```
|
```
|
||||||
**Solutions**:
|
**Solutions**:
|
||||||
- Use `node-ruby.yml` (Node.js base image with Ruby)
|
- **Fixed in main workflows**: `ci.yml`, `test.yml`, `build.yml`, and `docker.yml` now install Node.js before checkout
|
||||||
- Use `simple.yml` or `minimal.yml` (shell-based, no Node.js actions)
|
- Alternative: Use `node-ruby.yml` (Node.js base image with Ruby)
|
||||||
- Add Node.js to Ruby Alpine: `apk add --no-cache nodejs npm`
|
- Alternative: Use `simple.yml` or `minimal.yml` (shell-based, no Node.js actions)
|
||||||
|
- Manual fix: Add Node.js to Ruby Alpine: `apk add --no-cache nodejs npm`
|
||||||
|
|
||||||
2. **Actions not running**
|
2. **Actions not running**
|
||||||
- Check if Repository Actions are enabled
|
- Check if Repository Actions are enabled
|
||||||
|
|
|
@ -13,6 +13,10 @@ jobs:
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js for actions
|
||||||
|
run: |
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
@ -20,13 +20,13 @@ jobs:
|
||||||
working-directory: ./app
|
working-directory: ./app
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Install system dependencies including Node.js
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git curl tzdata nodejs npm
|
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git curl tzdata nodejs npm
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install bundler
|
- name: Install bundler
|
||||||
run: gem install bundler -v 2.6.7
|
run: gem install bundler -v 2.6.7
|
||||||
|
|
||||||
|
@ -64,6 +64,10 @@ jobs:
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js for actions
|
||||||
|
run: |
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
@ -17,13 +17,13 @@ jobs:
|
||||||
working-directory: ./app
|
working-directory: ./app
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install system dependencies including Node.js
|
||||||
|
run: |
|
||||||
|
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git nodejs npm
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: |
|
|
||||||
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git
|
|
||||||
|
|
||||||
- name: Install Ruby dependencies
|
- name: Install Ruby dependencies
|
||||||
run: |
|
run: |
|
||||||
gem install bundler -v 2.6.7
|
gem install bundler -v 2.6.7
|
||||||
|
@ -51,6 +51,10 @@ jobs:
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js for actions
|
||||||
|
run: |
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,13 @@ jobs:
|
||||||
working-directory: ./app
|
working-directory: ./app
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Install system dependencies including Node.js
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git curl tzdata nodejs npm
|
apk add --no-cache build-base libffi-dev linux-headers postgresql-dev git curl tzdata nodejs npm
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install bundler
|
- name: Install bundler
|
||||||
run: gem install bundler -v 2.6.7
|
run: gem install bundler -v 2.6.7
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue