From ad9f9c89fe0c1b97c2621e74b0df776c794f5a79 Mon Sep 17 00:00:00 2001 From: fujiwara Date: Wed, 20 Dec 2023 11:07:30 +0900 Subject: [PATCH 1/2] add CI --- .github/workflows/test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..60a529d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +name: test +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: ["2.7", "3.0", "3.1", "3.2"] + name: test on Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: bundle install + - run: bundle exec rake test From 449bba4ecbd5da1d6f85dd1087bcbfca1db9c912 Mon Sep 17 00:00:00 2001 From: fujiwara Date: Wed, 20 Dec 2023 11:10:24 +0900 Subject: [PATCH 2/2] switch to ruby/setup-ruby --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60a529d..62fec03 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,9 @@ jobs: name: test on Ruby ${{ matrix.ruby }} steps: - uses: actions/checkout@v4 - - uses: actions/setup-ruby@v1 + - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + bundler-cache: true - run: bundle install - run: bundle exec rake test