From b43e4d45c0a3977aafecd9b1303168e43afe8b40 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 3 Feb 2022 16:04:48 +0100 Subject: [PATCH] CI: Configure GitHub Actions Fixes ##168 --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..204c9fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + pull_request: + + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + name: build ${{ matrix.ruby }} + env: + BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile-base }}.gemfile" + strategy: + fail-fast: false + matrix: + ruby: + - 2.6 + - 2.7 + - '3.0' + - 3.1 + - truffleruby-head + gemfile-base: + - sprockets-rails_3_0 + - sprockets-rails_2_3 + - sprockets_3_0 + - sprockets_4_0 + - rails_4_2 + - rails_5_2 + - rails_6_0 + + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # 'bundle install' and cache gems + + - name: Test + continue-on-error: ${{ matrix.experimental }} + run: bundle exec rake