From b5110351aa1bd02a4f6f1cfc66a1408c62e4207c Mon Sep 17 00:00:00 2001 From: azumakuniyuki Date: Wed, 6 Mar 2024 21:03:45 +0900 Subject: [PATCH] Try to migrate from Travis to GitHub Actions --- .github/workflows/rake-test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/rake-test.yml diff --git a/.github/workflows/rake-test.yml b/.github/workflows/rake-test.yml new file mode 100644 index 00000000..b5ed8c42 --- /dev/null +++ b/.github/workflows/rake-test.yml @@ -0,0 +1,29 @@ +name: rake test +on: + push: + branches: ["5-stable"] + pull_request: + branches: ["5-stable"] +jobs: + test: + name: Make Test with Ruby ${{ matrix.ruby }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: ["2.4", "2.7", "3.0", "3.3", "jruby-9.2", "jruby-9.3", "jruby-9.4"] + steps: + - uses: actions/checkout@v2 + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: gem install bundle rake minitest + - name: Cache the dependent gems + uses: actions/cache@v2 + with: + path: ./cache + key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('./gem.snapshot') }} + - run: ruby -v + - run: rake test +