Skip to content

Commit c2729a5

Browse files
committed
Run rspec and standardrb on push
1 parent 8a75aea commit c2729a5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run Tests
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
name: Ruby ${{ matrix.ruby }}
9+
strategy:
10+
matrix:
11+
ruby: [2.7, 3.0, 3.1, 3.2]
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: ${{ matrix.ruby }}
18+
bundler-cache: true
19+
- name: Run linter for Ruby
20+
run: bundle exec standardrb
21+
- name: Run tests
22+
run: bundle exec rspec

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HathiTrust::Pairtree
22

3+
[![Tests](https://github.com/hathitrust/ht-pairtree/actions/workflows/tests.yml/badge.svg)](https://github.com/hathitrust/ht-pairtree/actions/workflows/tests.yml)
4+
35
Deal with a [Pairtree](https://github.com/mlibrary/pairtree) given an HTID.
46

57
Allows both reading and creation of the underlying pairtree directories

0 commit comments

Comments
 (0)