Skip to content

Commit 84aaf01

Browse files
authored
add spec workflow (#1)
* add spec workflow * run specs on main merge
1 parent f072f49 commit 84aaf01

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/specs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Run Specs
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup Ruby
18+
uses: ruby/setup-ruby@v1.152.0
19+
with:
20+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21+
22+
- name: Run Specs
23+
run: bin/rspec

.github/workflows/tag.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@ jobs:
1313
with:
1414
fetch-depth: 2
1515

16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1.152.0
18+
with:
19+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20+
21+
- name: Run Specs
22+
run: bin/rspec
23+
1624
- name: Tag new version
1725
uses: salsify/action-detect-and-tag-new-version@v2

0 commit comments

Comments
 (0)