diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa4903ff..f264f16b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,12 +133,12 @@ jobs: run: | VERSION="$(cog bump --auto --dry-run || true)" - if [[ -z $VERSION ]]; then + if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "New version: ${VERSION}" + else VERSION="$(git tag --points-at "$(git rev-list --tags --max-count=1)" | sort --reverse | head --lines 1)" echo "No version generated, defaulting to latest git tag: ${VERSION}" - else - echo "New version: ${VERSION}" fi # remove v diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 220b4150..fc07fc3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,6 @@ concurrency: on: workflow_dispatch: # releasing is manual as we don't want to release every time - branches: [main] permissions: contents: write # to write tags diff --git a/.nvmrc b/.nvmrc index a77793ec..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/hydrogen +20 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5c2440ed..1191d6ce 100755 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -43,6 +43,9 @@ "type": "cargo", "command": "test", "args": [], + "env": { + "RUSTFLAGS": "-Wclippy::all -Wclippy::pedantic -Wclippy::cargo -Wwarnings" + }, "problemMatcher": ["$rustc"], "group": "test", "label": "Rust: cargo test" diff --git a/Cargo.toml b/Cargo.toml index 5055272e..7ee2553c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,9 @@ repository = "https://github.com/kristof-mattei/autoheal-rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.dev.package.backtrace] +opt-level = 3 + [features] coverage = []