diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0b3779e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a281a5..244b2ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,23 +4,31 @@ name: main on: - push: - branches: - - "**" + pull_request: + merge_group: jobs: + typos-check: + name: Typos Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1.19.0 + formatting-check: name: Formatting Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: jidicula/clang-format-action@v4.9.0 - with: { clang-format-version: "16" } + - uses: greut/eclint-action@v0 + - uses: jidicula/clang-format-action@v4.11.0 + with: { clang-format-version: "18" } test-windows: + if: (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]') || (github.event_name == 'merge_group' && github.event.pull_request.user.login != 'renovate[bot]') runs-on: windows-latest steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | /Users/runneradmin/AppData/Local/bazelisk @@ -33,9 +41,10 @@ jobs: working-directory: test test-linux: + if: (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]') || (github.event_name == 'merge_group' && github.event.pull_request.user.login != 'renovate[bot]') runs-on: ubuntu-latest steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/bazelisk diff --git a/CHANGELOG.md b/CHANGELOG.md index 1444260..17e7271 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,4 +104,4 @@ All notable changes to this project will be documented in this file. See [conven - - - -Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto). \ No newline at end of file +Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto). diff --git a/bazel/common.bazelrc b/bazel/common.bazelrc index 50ddd64..9c8eb86 100644 --- a/bazel/common.bazelrc +++ b/bazel/common.bazelrc @@ -1,6 +1,7 @@ startup --windows_enable_symlinks common --enable_bzlmod common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/main +common --registry=https://raw.githubusercontent.com/zaucy/bazel-central-registry/add-curl-config2 # temporary common --registry=https://raw.githubusercontent.com/bazelboost/registry/main common --registry=https://bcr.bazel.build build --enable_platform_specific_config @@ -10,9 +11,6 @@ build --enable_runfiles build --noincompatible_remove_rule_name_parameter query --noincompatible_remove_rule_name_parameter -# Temporary until https://github.com/grailbio/bazel-toolchain/pull/198 is merged -build:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux - common:ci --announce_rc common:ci --verbose_failures common:ci --keep_going diff --git a/cog.toml b/cog.toml index 9cbba6c..9d9654c 100644 --- a/cog.toml +++ b/cog.toml @@ -1,10 +1,11 @@ pre_bump_hooks = [ - # Ecsact pre 1.0.0 the 0.X.0 is our 'major' version - "buildozer 'set version {{version}}' 'set compatibility_level {{version.minor}}' //MODULE.bazel:%module", + # Ecsact pre 1.0.0 the 0.X.0 is our 'major' version + "buildozer 'set version {{version}}' 'set compatibility_level {{version.minor}}' //MODULE.bazel:%module", + "bazel mod tidy", ] post_bump_hooks = [ - "git push", - "git push origin {{version}}", - "gh release create {{version}} --generate-notes --latest -t {{version}} --verify-tag", + "git push", + "git push origin {{version}}", + "gh release create {{version}} --generate-notes --latest -t {{version}} --verify-tag", ] diff --git a/renovate.json b/renovate.json index fa1abeb..25b1be3 100644 --- a/renovate.json +++ b/renovate.json @@ -3,4 +3,4 @@ "extends": [ "github>ecsact-dev/renovate-config" ] -} \ No newline at end of file +} diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..3ffc3da --- /dev/null +++ b/typos.toml @@ -0,0 +1,5 @@ +[files] +extend-exclude = ["CHANGELOG.md"] + +[default] +extend-ignore-re = ["(?Rm)^.*(#|//)\\s*typos:disable-line$"]