summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jarvis <leejarvis@fastmail.com>2021-06-15 12:04:04 +0100
committerGitHub <noreply@github.com>2021-06-15 12:04:04 +0100
commit4142736027cda2e19fc016e0e3fa6a9bc5ac3dd3 (patch)
tree3e9d1208e44c4d4d6b13583de38d90c2770e9c48
parent6bb57f1cb48ce896d00699684a384545ef7949dc (diff)
downloadslop-4142736027cda2e19fc016e0e3fa6a9bc5ac3dd3.tar.gz
Create CI Action Workflow
-rw-r--r--.github/workflows/ci.yml35
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