benchmark-action / benchmark-action/github-action-benchmark
Handling relative paths does not consider the default working-directory
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.3k
- Forks
- 184
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I notice that I get an error when reading the file in the following job snippet:
```
rust-bench:
name: Rust bench
timeout-minutes: 20
defaults:
run:
working-directory: ./src/example
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
lfs: true
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run bench
run: cargo bench --bench my-code | tee results.txt
- name: Store bench with github action
uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: 'cargo'
output-file-path: results.txt
github-token: ${{ github.token }}
auto-push: true
summary-always: true
alert-threshold: '110%'
comment-on-alert: true
fail-on-alert: true
```
From the error, I can see it's ignoring the working-directory parameter.
After I added the `src/example` to the `output-file-path` the action success to read the file
Beitragsleitfaden
Rechercherichtung
Reproduziere den bereitgestellten GitHub Actions-Workflow mit defaults.run.working-directory auf ./src/example und output-file-path auf results.txt gesetzt und verfolge anschließend, wie die Action diesen Pfad auflöst. Die Aufgabe ist abgeschlossen, wenn die Action die relative Ausgabedatei aus dem standardmäßigen Arbeitsverzeichnis des Jobs lesen kann, ohne dass src/example im Eingabepfad erforderlich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions, typescript
- Bereich
- ci-cd
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100