Skip to content

Commit 501c5ec

Browse files
committed
ci: one github workflow to rule them all
1 parent ea7cc27 commit 501c5ec

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

.github/workflows/rspec.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/release.yml renamed to .github/workflows/rspec_and_release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
name: release
1+
name: Rspec and Release
22

33
on:
44
push:
5+
pull_request:
56

67
jobs:
8+
rspec:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Ruby 2.5.8
14+
uses: actions/setup-ruby@v1
15+
with:
16+
ruby-version: 2.5.8
17+
- name: Test with Rspec
18+
run: |
19+
gem install --no-rdoc --no-ri bundler
20+
bundle install --jobs 4 --retry 3
21+
bundle exec rspec
722
release:
23+
if: github.event_name == 'push'
24+
needs: rspec
825
runs-on: ubuntu-latest
926

1027
steps:
@@ -30,3 +47,4 @@ jobs:
3047
extra_plugins: |
3148
@semantic-release/changelog
3249
@semantic-release/git
50+

0 commit comments

Comments
 (0)