From 2c442aeef4593f460ca36f131ebce94621ce91d4 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 15 Jul 2024 14:12:00 +1200 Subject: [PATCH] Modernize gem. --- .github/workflows/documentation-coverage.yaml | 25 +++++++++++++++++++ .../{coverage.yaml => test-coverage.yaml} | 2 +- gems.rb | 4 +-- readme.md | 6 ++--- 4 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/documentation-coverage.yaml rename .github/workflows/{coverage.yaml => test-coverage.yaml} (98%) diff --git a/.github/workflows/documentation-coverage.yaml b/.github/workflows/documentation-coverage.yaml new file mode 100644 index 0000000..b3bac9a --- /dev/null +++ b/.github/workflows/documentation-coverage.yaml @@ -0,0 +1,25 @@ +name: Documentation Coverage + +on: [push, pull_request] + +permissions: + contents: read + +env: + CONSOLE_OUTPUT: XTerm + COVERAGE: PartialSummary + +jobs: + validate: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.3" + bundler-cache: true + + - name: Validate coverage + timeout-minutes: 5 + run: bundle exec bake decode:index:coverage lib diff --git a/.github/workflows/coverage.yaml b/.github/workflows/test-coverage.yaml similarity index 98% rename from .github/workflows/coverage.yaml rename to .github/workflows/test-coverage.yaml index 68adbf2..d7e5b24 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -1,4 +1,4 @@ -name: Coverage +name: Test Coverage on: [push, pull_request] diff --git a/gems.rb b/gems.rb index 51d1388..1c1e02b 100644 --- a/gems.rb +++ b/gems.rb @@ -17,9 +17,9 @@ end group :test do - gem "bake", "~> 0.19.0" + gem "sus" gem "covered" - gem "sus", ">= 0.24.3" + gem "decode" gem "bake-test" gem "bake-test-external" diff --git a/readme.md b/readme.md index c5f76c1..ddd721a 100644 --- a/readme.md +++ b/readme.md @@ -20,11 +20,11 @@ We welcome contributions to this project. ### Developer Certificate of Origin -This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted. +In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed. -### Contributor Covenant +### Community Guidelines -This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms. +This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers. ## See Also