File tree Expand file tree Collapse file tree 4 files changed +40
-37
lines changed
Expand file tree Collapse file tree 4 files changed +40
-37
lines changed Original file line number Diff line number Diff line change 1+ name : CD
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
13+ - name : Tag and Push Gem
14+ id : tag-and-push-gem
15+ uses : discourse/publish-rubygems-action@2d713f2092b4f02da811f4b591a10b6b56f0780e
16+ env :
17+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
18+ GIT_EMAIL : ${{secrets.ALEX_GIT_EMAIL}}
19+ GIT_NAME : ${{secrets.ALEX_GIT_NAME}}
20+ RUBYGEMS_API_KEY : ${{secrets.RUBYGEMS_API_KEY}}
21+ - name : Create GitHub Release
22+ uses : softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
23+ if : ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
24+ with :
25+ tag_name : v${{steps.tag-and-push-gem.outputs.gem_version}}
26+ generate_release_notes : true
Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push, pull_request ]
3+ on : [push]
44
55jobs :
6- build :
6+ rspec :
77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
@@ -16,28 +16,25 @@ jobs:
1616 - head
1717 env :
1818 BUNDLE_GEMFILE : Gemfile
19- name : " Tests : Ruby ${{ matrix.ruby }}"
19+ name : " RSpec tests : Ruby ${{ matrix.ruby }}"
2020 steps :
21- - uses : actions/checkout@5126516654c75f76bca1de45dd82a3006d8890f9
21+ - uses : actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
2222 - name : Set up Ruby ${{ matrix.ruby }}
23- uses : ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
23+ uses : ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7
2424 with :
25+ bundler-cache : true
2526 ruby-version : ${{ matrix.ruby }}
2627 - name : Run tests
27- run : |
28- gem install bundler
29- bundle install --jobs 4 --retry 3
30- bundle exec rspec
31- static-type-checking :
28+ run : bundle exec rspec
29+ static_type_check :
30+ name : " Type Check"
3231 runs-on : ubuntu-latest
3332 steps :
34- - uses : actions/checkout@5126516654c75f76bca1de45dd82a3006d8890f9
33+ - uses : actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
3534 - name : Set up Ruby
36- uses : ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
35+ uses : ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7
3736 with :
37+ bundler-cache : true
3838 ruby-version : head
3939 - name : Run static type checks
40- run : |
41- gem install bundler
42- bundle install --jobs 4 --retry 3
43- bundle exec srb tc
40+ run : bundle exec srb tc
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11--dir
22.
3+ --ignore=/vendor/bundle
You can’t perform that action at this time.
0 commit comments