diff options
-rw-r--r-- | .github/workflows/ci.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cc1ac21 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [ master ] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + pull_request: + branches: ["**"] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [ "2.7", head, jruby, truffleruby ] + name: Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: none + - name: Run tests + run: rake test |