From c74decfdd4f5258e3354376cbd4e7ac524ead516 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Wed, 5 Apr 2023 11:55:52 +0900 Subject: [PATCH] Add CI as GitHub Actions Signed-off-by: Daijiro Fukuda --- .github/workflows/test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..bc6ec7c --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,20 @@ +name: Test +on: [push, pull_request] +jobs: + Test: + strategy: + fail-fast: false + matrix: + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + ruby: [ '2.7', '3.0', '3.1', '3.2' ] + name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Test + run: bundle exec rake