Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,22 @@ jobs:

- name: scaladoc ${{ matrix.scala }}
run: sbt "++${{ matrix.scala }}; Compile/doc"

# One status check to require in branch protection rules, instead of every matrix leg by name.
# See: https://github.com/re-actors/alls-green
all-green:
runs-on: ubuntu-latest
if: always()
needs:
- sbt-tasks
- test-coverage
- coverage-finished
- binary-compatibility
- formatting
- scaladoc

steps:
- name: decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ to improve the quality of code in repo!
* `formatting` - runs [scalafmt](https://scalameta.org/scalafmt/)'s `scalafmtCheckRepo` task (requires at
least version 2.6.2)
* `scaladoc` - calls `Compile/doc` task to make sure that Scaladocs compile
* `all-green` - a single check that passes only if all of the above did, via
[alls-green](https://github.com/re-actors/alls-green). Require it in branch protection rules as
`test / all-green` (named after the caller's job) rather than listing every matrix leg; callers no
longer need their own `all-green` job

### SonarQube Cloud

Expand Down
Loading