diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1405646..826f662 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,6 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo build --workspace + - run: cargo build --workspace --all-features - run: cargo check --no-default-features --workspace - - run: cargo test --workspace + - run: cargo test --workspace --all-features diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14a3d26..1abaf19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Validate tag exists + env: + RELEASE_TAG: ${{ inputs.tag || github.ref_name }} + run: | + if ! git rev-parse "${RELEASE_TAG}" >/dev/null 2>&1; then + echo "::error::Tag ${RELEASE_TAG} does not exist in the repository" + exit 1 + fi - name: Generate changelog id: changelog env: