From a71fe2ec6a03c219c5e7a0a7aba041cddc994acb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 25 Oct 2022 15:41:45 +0900 Subject: [PATCH 1/2] Update supported and testing ruby versions --- .github/workflows/test.yml | 4 ++-- tmpdir.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8958022..ec1a05d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: ubuntu +name: test on: [push, pull_request] @@ -7,7 +7,7 @@ jobs: name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: [ 2.7, 2.6, 2.5, 2.4, head ] + ruby: [ '3.1', '3.0', '2.7', head ] os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: diff --git a/tmpdir.gemspec b/tmpdir.gemspec index 7b76403..8e471bf 100644 --- a/tmpdir.gemspec +++ b/tmpdir.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |spec| spec.description = %q{Extends the Dir class to manage the OS temporary file path.} spec.homepage = "https://github.com/ruby/tmpdir" spec.licenses = ["Ruby", "BSD-2-Clause"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage From cace27a009cac912d411e7b83c6d3c9af6dff184 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 25 Oct 2022 15:44:12 +0900 Subject: [PATCH 2/2] Add Windows to CI --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec1a05d..c6b447f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,12 @@ jobs: strategy: matrix: ruby: [ '3.1', '3.0', '2.7', head ] - os: [ ubuntu-latest, macos-latest ] + os: [ ubuntu-latest, macos-latest, windows-latest ] + exclude: + - { os: windows-latest, ruby: head } + include: + - { os: windows-latest, ruby: mingw } + - { os: windows-latest, ruby: mswin } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3