Skip to content

Commit

Permalink
Fix last_green support (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Oct 21, 2024
1 parent 75fcb3d commit 6220a92
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 40 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: USE_BAZEL_VERSION=6.x bazelisk test //...
- run: bazelisk test //... --enable_bzlmod=false
- run: USE_BAZEL_VERSION=6.x bazelisk test //tests/...
- run: bazelisk test //tests/... --enable_bzlmod=false
- run: bazelisk test //...
- run: USE_BAZEL_VERSION=rolling bazelisk test //...
- run: USE_BAZEL_VERSION=last_green bazelisk test //...
# - run: USE_BAZEL_VERSION=last_green bazelisk test //...

ubuntu_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: USE_BAZEL_VERSION=6.x bazelisk test //...
- run: bazelisk test //... --enable_bzlmod=false
- run: USE_BAZEL_VERSION=6.x bazelisk test //tests/...
- run: bazelisk test //tests/... --enable_bzlmod=false
- run: bazelisk test //...
- run: USE_BAZEL_VERSION=rolling bazelisk test //...
- run: USE_BAZEL_VERSION=last_green bazelisk test //...
# - run: USE_BAZEL_VERSION=last_green bazelisk test //...

windows_test:
runs-on: windows-latest
Expand All @@ -37,6 +37,6 @@ jobs:
- run: bazelisk test //tests/...
env:
USE_BAZEL_VERSION: rolling
- run: bazelisk test //tests/...
env:
USE_BAZEL_VERSION: last_green
# - run: bazelisk test //tests/...
# env:
# USE_BAZEL_VERSION: last_green
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module(
)

bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "rules_python", version = "0.27.1")
bazel_dep(name = "rules_python", version = "0.36.0")

bazel_dep(
name = "stardoc",
version = "0.6.2",
version = "0.7.1",
dev_dependency = True,
repo_name = "io_bazel_stardoc",
)
29 changes: 0 additions & 29 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,3 @@ http_archive(
load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()

http_archive(
name = "io_bazel_stardoc",
sha256 = "62bd2e60216b7a6fec3ac79341aa201e0956477e7c8f6ccc286f279ad1d96432",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz",
"https://github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz",
],
)

load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()

load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")

rules_jvm_external_deps()

load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")

rules_jvm_external_setup()

load("@io_bazel_stardoc//:deps.bzl", "stardoc_external_deps")

stardoc_external_deps()

load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_install")

stardoc_pinned_maven_install()
10 changes: 10 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ useful for running multiple linters or formatters with a single command.
## command

<pre>
load("@rules_multirun//:defs.bzl", "command")

command(<a href="#command-name">name</a>, <a href="#command-data">data</a>, <a href="#command-arguments">arguments</a>, <a href="#command-command">command</a>, <a href="#command-description">description</a>, <a href="#command-environment">environment</a>)
</pre>

Expand Down Expand Up @@ -63,6 +65,8 @@ command(
## command_force_opt

<pre>
load("@rules_multirun//:defs.bzl", "command_force_opt")

command_force_opt(<a href="#command_force_opt-name">name</a>, <a href="#command_force_opt-data">data</a>, <a href="#command_force_opt-arguments">arguments</a>, <a href="#command_force_opt-command">command</a>, <a href="#command_force_opt-description">description</a>, <a href="#command_force_opt-environment">environment</a>)
</pre>

Expand Down Expand Up @@ -90,6 +94,8 @@ load("@rules_multirun//:defs.bzl", "multirun", command = "command_force_opt")
## multirun

<pre>
load("@rules_multirun//:defs.bzl", "multirun")

multirun(<a href="#multirun-name">name</a>, <a href="#multirun-data">data</a>, <a href="#multirun-buffer_output">buffer_output</a>, <a href="#multirun-commands">commands</a>, <a href="#multirun-jobs">jobs</a>, <a href="#multirun-keep_going">keep_going</a>, <a href="#multirun-print_command">print_command</a>)
</pre>

Expand Down Expand Up @@ -160,6 +166,8 @@ multiple tools.
## command_with_transition

<pre>
load("@rules_multirun//:defs.bzl", "command_with_transition")

command_with_transition(<a href="#command_with_transition-cfg">cfg</a>, <a href="#command_with_transition-allowlist">allowlist</a>, <a href="#command_with_transition-doc">doc</a>)
</pre>

Expand All @@ -184,6 +192,8 @@ to apply to all of your commands. See also multirun_with_transition.
## multirun_with_transition

<pre>
load("@rules_multirun//:defs.bzl", "multirun_with_transition")

multirun_with_transition(<a href="#multirun_with_transition-cfg">cfg</a>, <a href="#multirun_with_transition-allowlist">allowlist</a>)
</pre>

Expand Down

0 comments on commit 6220a92

Please sign in to comment.