From 67a8db51366f2e5cb94213cf12b19d0305448aa7 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 30 Dec 2022 15:03:34 +0900 Subject: [PATCH 1/5] github: Add dependabot to check updates of GitHub Actions Signed-off-by: Takuro Ashie --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b18fd29 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' From 9776800a2b523ff7540b320b5f191ee950426450 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 30 Dec 2022 15:05:26 +0900 Subject: [PATCH 2/5] CI: Add Ruby 3.2 and drop 2.6 or former Signed-off-by: Takuro Ashie --- .github/workflows/linux.yml | 2 +- .github/workflows/macos.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index ccb779e..ee1137a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '3.1', '3.0', '2.7', '2.6' ] + ruby: [ '3.2', '3.1', '3.0', '2.7' ] os: - ubuntu-latest name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c01a31f..469d11b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '2.4', '2.5', '2.6', '2.7' ] + ruby: [ '3.2', '3.1', '3.0', '2.7' ] os: - macOS-latest name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} From 72beba82cd91bd24b9b79dbfcdc945b2cfd1102e Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 30 Dec 2022 15:07:55 +0900 Subject: [PATCH 3/5] CI: Remove Travis CI Signed-off-by: Takuro Ashie --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 942135d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false -language: ruby - -rvm: - - 2.4 - - 2.5.3 - - 2.6.0 From 9e2d7abea050f267198696c83e543743b8fb9186 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 30 Dec 2022 15:14:41 +0900 Subject: [PATCH 4/5] CI: Unify linux & macOS Signed-off-by: Takuro Ashie --- .github/workflows/macos.yml | 26 ------------------- .../workflows/{linux.yml => unit-test.yml} | 5 ++-- 2 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/macos.yml rename .github/workflows/{linux.yml => unit-test.yml} (90%) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 469d11b..0000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Testing on macOS -on: - - push - - pull_request -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - ruby: [ '3.2', '3.1', '3.0', '2.7' ] - os: - - macOS-latest - name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: unit testing - env: - CI: true - run: | - gem install bundler rake - bundle install --jobs 4 --retry 3 - bundle exec rake test diff --git a/.github/workflows/linux.yml b/.github/workflows/unit-test.yml similarity index 90% rename from .github/workflows/linux.yml rename to .github/workflows/unit-test.yml index ee1137a..ad2c682 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/unit-test.yml @@ -1,4 +1,4 @@ -name: Test on Ubuntu +name: Test on: push: branches: [master] @@ -11,8 +11,7 @@ jobs: fail-fast: false matrix: ruby: [ '3.2', '3.1', '3.0', '2.7' ] - os: - - ubuntu-latest + os: [ 'ubuntu-latest', 'macOS-latest' ] name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} steps: - uses: actions/checkout@v2 From e462d7dd13ba38981de89b950942fd560cfb9b14 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 30 Dec 2022 15:20:38 +0900 Subject: [PATCH 5/5] CI: Migrate CI for Windows from AppVeyor to GitHub Actions Signed-off-by: Takuro Ashie --- .github/workflows/unit-test.yml | 6 +++++- appveyor.yml | 23 ----------------------- 2 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ad2c682..2860c51 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -11,7 +11,11 @@ jobs: fail-fast: false matrix: ruby: [ '3.2', '3.1', '3.0', '2.7' ] - os: [ 'ubuntu-latest', 'macOS-latest' ] + os: [ 'ubuntu-latest', 'macOS-latest', 'windows-latest' ] + # It should be removed after RubyInstaller 3.2 is available on setup-ruby + exclude: + - os: windows-latest + ruby: 3.2 name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 37c89a0..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: '{build}' - -# init: -# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - -install: - - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - - ruby --version - - gem --version - - ridk.cmd exec bundle install -build: off -test_script: - - bundle exec rake test - -# https://www.appveyor.com/docs/installed-software/#ruby -environment: - matrix: - - ruby_version: "26-x64" - - ruby_version: "26" - - ruby_version: "25-x64" - - ruby_version: "25" - - ruby_version: "24-x64" - - ruby_version: "24"