summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2021-07-02 11:05:55 +0300
committerGitHub <noreply@github.com>2021-07-02 11:05:55 +0300
commit63e554b440d3d8fc3b3d49c364f247a521f23c98 (patch)
tree9197bac2263574267290e919aab593493e94be93 /.github
parentdb856653dd47995c39711f1518ebf94792e9c471 (diff)
parente8e378036f985b9ff95da23bd497be31a3faea70 (diff)
downloadpry-63e554b440d3d8fc3b3d49c364f247a521f23c98.tar.gz
Merge pull request #2204 from pry/github-actions
Test using Github Actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 00000000..fe6bf10c
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,38 @@
+name: pry
+
+on: [push]
+
+jobs:
+ test:
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
+ ruby: [2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', head, jruby, jruby-head]
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ bundler-cache: true
+
+ - name: Rubocop lint
+ run: which rubocop && bundle exec rubocop || true
+
+ - name: YARD lint
+ run: >-
+ touch README # Workaround for "incorrect" links in README.md
+ bundle exec yardoc --fail-on-warning --no-progress --readme=README
+
+ - name: Display Ruby version
+ run: ruby -v
+
+ - name: Test
+ run: bundle exec rake
+ env:
+ # Make sure TERM is set so Pry can indent correctly inside tests.
+ TERM: screen-256color