From a9c89b984bce4bf28bb74a5933e8088fbdef3f3d Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sun, 4 Aug 2024 20:01:52 +1200 Subject: [PATCH] Modernize gem. --- .github/workflows/rubocop.yaml | 20 ++++---------------- .github/workflows/test-coverage.yaml | 2 +- benchmark/rubies/benchmark.rb | 2 +- examples/debug/sample.rb | 2 +- test/async/waiter.rb | 2 +- test/async/wrapper.rb | 2 +- test/enumerator.rb | 2 +- 7 files changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/rubocop.yaml b/.github/workflows/rubocop.yaml index edfd9bc4..287c06d9 100644 --- a/.github/workflows/rubocop.yaml +++ b/.github/workflows/rubocop.yaml @@ -1,4 +1,4 @@ -name: Test External +name: RuboCop on: [push, pull_request] @@ -9,26 +9,14 @@ env: CONSOLE_OUTPUT: XTerm jobs: - test: - name: ${{matrix.ruby}} on ${{matrix.os}} - runs-on: ${{matrix.os}}-latest - - strategy: - matrix: - os: - - ubuntu - - macos - - ruby: - - "3.1" - - "3.2" - - "3.3" + check: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: ${{matrix.ruby}} + ruby-version: ruby bundler-cache: true - name: Run RuboCop diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 982806e5..e28c36e8 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -51,7 +51,7 @@ jobs: env: IO_EVENT_SELECTOR: ${{matrix.selector}} run: bundle exec bake test - + - uses: actions/upload-artifact@v3 with: name: coverage-${{matrix.os}}-${{matrix.ruby}}-${{matrix.selector}} diff --git a/benchmark/rubies/benchmark.rb b/benchmark/rubies/benchmark.rb index e0aea7b3..bf69c869 100755 --- a/benchmark/rubies/benchmark.rb +++ b/benchmark/rubies/benchmark.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2022, by Samuel Williams. +# Copyright, 2019-2024, by Samuel Williams. require 'socket' require 'fiber' diff --git a/examples/debug/sample.rb b/examples/debug/sample.rb index 117c67ff..c210cc47 100644 --- a/examples/debug/sample.rb +++ b/examples/debug/sample.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2023, by Samuel Williams. +# Copyright, 2023-2024, by Samuel Williams. require 'async' diff --git a/test/async/waiter.rb b/test/async/waiter.rb index 60d0695f..f59e4a38 100644 --- a/test/async/waiter.rb +++ b/test/async/waiter.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2022-2023, by Samuel Williams. +# Copyright, 2022-2024, by Samuel Williams. # Copyright, 2024, by Patrik Wenger. require 'async/waiter' diff --git a/test/async/wrapper.rb b/test/async/wrapper.rb index 5ef98002..4feddd1e 100644 --- a/test/async/wrapper.rb +++ b/test/async/wrapper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2022, by Samuel Williams. +# Copyright, 2017-2024, by Samuel Williams. require 'sus/fixtures/async' require "async/wrapper" diff --git a/test/enumerator.rb b/test/enumerator.rb index 2ad01664..a310d7d3 100644 --- a/test/enumerator.rb +++ b/test/enumerator.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2022, by Samuel Williams. +# Copyright, 2018-2024, by Samuel Williams. require 'async'