From 2a32af0a38e01bc1616602a669d93b027b6119a7 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sun, 22 Sep 2024 21:43:39 +0900 Subject: [PATCH] ci: use .yaml --- .github/workflows/test.yaml | 46 +++++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 30 ------------------------ 2 files changed, 46 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/test.yaml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..b56d203 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,46 @@ +# Copyright (C) 2021-2024 Sutou Kouhei +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +name: Test +on: + - push + - pull_request +jobs: + test: + name: ${{ matrix.ruby-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby-version: + - "2.6" + - "2.7" + - "3.0" + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies to build gems + run: | + sudo apt update + bundle install + - name: Test + # TODO: No test + if: | + false + run: | + bundle exec ruby test/run-test.rb diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index a196b25..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Test -on: - - push - - pull_request -jobs: - test: - name: ${{ matrix.ruby-version }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - ruby-version: - - "2.6" - - "2.7" - - "3.0" - steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby-version }} - - name: Install dependencies to build gems - run: | - sudo apt update - bundle install - - name: Test - # TODO: No test - if: | - false - run: | - bundle exec ruby test/run-test.rb