From 3e46f97b101ffc8e03669675f519675a444e88df Mon Sep 17 00:00:00 2001 From: jim4067 Date: Sun, 12 Sep 2021 18:27:09 +0300 Subject: [PATCH 1/5] add rustfmt to workflow --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3c13d1be..442d3919 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 From c3fdb1c933e81f46419b4c3841c1242fab7f2744 Mon Sep 17 00:00:00 2001 From: jim4067 Date: Sun, 12 Sep 2021 18:28:15 +0300 Subject: [PATCH 2/5] rename workflow to ci --- .github/workflows/{rust.yml => ci.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{rust.yml => ci.yml} (97%) diff --git a/.github/workflows/rust.yml b/.github/workflows/ci.yml similarity index 97% rename from .github/workflows/rust.yml rename to .github/workflows/ci.yml index 442d3919..a182a9b6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Rust +name: CI on: push: From e2bf6e83745d25513e9954b978de5d5bf2523121 Mon Sep 17 00:00:00 2001 From: jim4067 Date: Sun, 12 Sep 2021 18:29:18 +0300 Subject: [PATCH 3/5] remove travis ci badge and add github workflows badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 21b23ee4c333da7f899edcae47bd63db88246038 Mon Sep 17 00:00:00 2001 From: Jimmy <30603522+jim4067@users.noreply.github.com> Date: Sun, 12 Sep 2021 18:48:36 +0300 Subject: [PATCH 4/5] update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a182a9b6..1d21ba79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: run rustfmt + - name: Run rustfmt - run: cargo fmt -- --check - name: Build run: cargo build --verbose From ee58f7765489a403aedf7286dcd0f0c1d9aab42a Mon Sep 17 00:00:00 2001 From: Jimmy <30603522+jim4067@users.noreply.github.com> Date: Sun, 12 Sep 2021 18:50:22 +0300 Subject: [PATCH 5/5] update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d21ba79..f40ab584 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Run rustfmt - - run: cargo fmt -- --check + run: cargo fmt -- --check - name: Build run: cargo build --verbose - name: Run tests