From f86ccb5773540579c6708a09c51012366b890de9 Mon Sep 17 00:00:00 2001 From: NyxCode Date: Mon, 22 Jan 2024 15:45:07 +0100 Subject: [PATCH] CI: Verify README is up to date (#200) CI: Verify README.md is up-to-date --- .github/workflows/test.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d980a125b..3a2daab8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,20 @@ on: [push, pull_request] name: Test jobs: + readme-up-to-date: + name: Check that README.md is up-to-date + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Check that README.md is up-to-date + working-directory: ts-rs + run: | + cargo install cargo-readme + diff -u ../README.md <(cargo readme) + test: name: Test ts-rs runs-on: ubuntu-latest @@ -16,4 +30,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --all-features --manifest-path ts-rs/Cargo.toml + args: --all-features --manifest-path ts-rs/Cargo.toml \ No newline at end of file