Skip to content

GitHub Action to setup Problem Matchers for Rust.

License

Notifications You must be signed in to change notification settings

r7kamura/rust-problem-matchers

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-problem-matchers

GitHub Action to setup Problem Matchers for Rust.

Setting this action will automatically annotate errors from Rust toolchain on GitHub Actions.

screenshot

Usage

Add this action before running Rust toolchain:

- uses: r7kamura/rust-problem-matchers@v1

Full example

name: test

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy
      - uses: r7kamura/rust-problem-matchers@v1
      - uses: actions-rs/cargo@v1
        name: cargo fmt
        with:
          command: fmt
          args: --all -- --check
      - uses: actions-rs/cargo@v1
        name: cargo build
        with:
          command: build
      - uses: actions-rs/cargo@v1
        name: cargo clippy
        with:
          command: clippy
          args: -- -D warnings
      - uses: actions-rs/cargo@v1
        name: cargo test
        with:
          command: test

About

GitHub Action to setup Problem Matchers for Rust.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project