From f478647a8e39b125b9b7f27b70649ec73bbee68a Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Fri, 13 Aug 2021 15:05:09 +0200 Subject: [PATCH] ci: add readme check to CI (#4039) --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 499de759145..160692b055b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: - docs - loom - valgrind + - check-readme steps: - run: exit 0 @@ -313,3 +314,15 @@ jobs: RUSTFLAGS: --cfg loom --cfg tokio_unstable -Dwarnings LOOM_MAX_PREEMPTIONS: 2 SCOPE: ${{ matrix.scope }} + + check-readme: + name: Check README + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Verify that both READMEs are identical + run: diff README.md tokio/README.md + + - name: Verify that Tokio version is up to date in README + working-directory: tokio + run: grep -q "$(sed '/^version = /!d' Cargo.toml | head -n1)" README.md