From edf19f03d075209a7fd8c93a56c0f7444650bb33 Mon Sep 17 00:00:00 2001 From: Yutaro SUGAI Date: Mon, 2 Jun 2025 05:54:27 +0000 Subject: [PATCH] add CI by GitHub Actions --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..703c975 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: + [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.2'] + steps: + - uses: actions/checkout@v4 + - name: Install ImageMagick + run: sudo apt-get update && sudo apt-get install -y imagemagick libmagickwand-dev + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run tests + run: bundle exec rspec