diff --git a/.github/workflows/rust.yml b/.github/workflows/ci.yml similarity index 82% rename from .github/workflows/rust.yml rename to .github/workflows/ci.yml index 3c13d1be..f40ab584 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Rust +name: CI on: push: @@ -16,6 +16,8 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Run rustfmt + run: cargo fmt -- --check - name: Build run: cargo build --verbose - name: Run tests diff --git a/README.md b/README.md index 6482ff1a..f60c96e1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ `annotate-snippets` is a Rust library for annotation of programming code slices. [![crates.io](https://img.shields.io/crates/v/annotate-snippets.svg)](https://crates.io/crates/annotate-snippets) -[![Build Status](https://travis-ci.org/rust-lang/annotate-snippets-rs.svg?branch=master)](https://travis-ci.org/rust-lang/annotate-snippets-rs) +![build status](https://github.com/rust-lang/annotate-snippets-rs/actions/workflows/ci.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/rust-lang/annotate-snippets-rs/badge.svg?branch=master)](https://coveralls.io/github/rust-lang/annotate-snippets-rs?branch=master) The library helps visualize meta information annotating source code slices.