From e98e2e720a5658c042a614db33db980e8df170d8 Mon Sep 17 00:00:00 2001 From: Antonius Naumann Date: Fri, 20 Oct 2023 15:00:10 +0200 Subject: [PATCH] CI: Dry run cargo publish for every commit --- .github/workflows/ci.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d39e862..caec945 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: Build on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always @@ -13,10 +13,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Check - run: cargo check --verbose - - name: Build - run: cargo build --verbose - - name: Test - run: cargo test --verbose + - uses: actions/checkout@v3 + - name: Check + run: cargo check --verbose + - name: Build + run: cargo build --verbose + - name: Test + run: cargo test --verbose + - name: Publish (Dry Run) + run: cargo publish --dry-run