From 82765d8744c301ef274943c0f806793728911465 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 31 Jan 2023 12:20:49 -0800 Subject: [PATCH] Add coverage of a cargo invocation in CI --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f118884..c77aff2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,9 @@ jobs: run: cmp -s <(echo ${{steps.toolchain.outputs.cachekey}}) <(echo 20220627a831) shell: bash - run: rustc --version + - run: cargo init . --bin --name CI + if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable' + - run: cargo add syn@1 + if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable' + - run: cargo check + if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'