diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index a7a5efeb..e210b2b4 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -36,7 +36,7 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - run: cargo test --tests --all-features + - run: cargo test --tests --all-features --workspace udeps: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fe2f78c..7dac1121 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: branches: - main paths: - - "**/Cargo.toml" + - "Cargo.toml" - ".github/workflows/release.yml" jobs: @@ -25,6 +25,10 @@ jobs: - name: Check published version run: echo PREV_VERSION=$(cargo search salvo --limit 1 | sed -nE 's/^[^"]*"//; s/".*//1p' -) >> $GITHUB_ENV + - name: Cancel run + if: env.NEXT_VERSION == env.PREV_VERSION + uses: andymckay/cancel-action@0.3 + - name: Auto tag latest version uses: bullrich/commit-autotag@main if: env.NEXT_VERSION != env.PREV_VERSION diff --git a/Cargo.toml b/Cargo.toml index 2f42cd45..ef607383 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ license = "MIT" [workspace] members = ["engineioxide", "socketioxide", "e2e/*", "examples/*"] +default-members = ["engineioxide", "socketioxide"] resolver = "2" [workspace.dependencies]