Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

echo workflow commands for each cargo error and warning #194

Open
1 of 3 tasks
hhirtz opened this issue Sep 29, 2021 · 0 comments
Open
1 of 3 tasks

echo workflow commands for each cargo error and warning #194

hhirtz opened this issue Sep 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hhirtz
Copy link

hhirtz commented Sep 29, 2021

Do the checklist before filing an issue:

Motivation

nice-to-have feature request: instead of having to look through job logs, the cargo action would show warnings and errors from cargo directly in the PR file view.

For example, to show an error in the file view in shell:

echo "::error file=src/lib.rs,line=30,endLine=30::`#![feature]` may not be used on the stable release channel"

Workflow example

No change in workflow files, the typical use of this action would Just Work:

on: [push]

name: CI

jobs:
  build_and_test:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
      - uses: actions-rs/cargo@v1
        with:
          command: build
          args: --release --all-features

Additional context

See https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions

I'm not willing to work on this at the moment and just wanted to hear your thoughts about this feature.

@hhirtz hhirtz added the enhancement New feature or request label Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant