File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish gem to GitHub package registry
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Set up Ruby
14+ uses : gocardless/github-actions/shared/actions/ruby-bundle-install@master
15+ with :
16+ known_hosts : ${{ secrets.KNOWN_HOSTS_GITHUB_KEY }}
17+ robot_ssh_key : ${{ secrets.ROBOT_READONLY_SSH_KEY }}
18+ token : ${{ secrets.ROBOT_READONLY_PACKAGE_READER }}
19+ - name : Publish Gem
20+ uses : gocardless/github-actions/shared/actions/publish-internal-gem@master
21+ with :
22+ token : ${{ secrets.GITHUB_TOKEN }}
23+ known_hosts : ${{ secrets.KNOWN_HOSTS_GITHUB_KEY }}
24+ robot_ssh_key : ${{ secrets.ROBOT_READONLY_SSH_KEY }}
Original file line number Diff line number Diff line change 1+ name : tests
2+ on : push
3+
4+ jobs :
5+ test_and_lint :
6+ runs-on : ubuntu-latest
7+ strategy :
8+ matrix :
9+ ruby_version :
10+ - ' 2.6'
11+ - ' 2.7'
12+ - ' 3.0'
13+ steps :
14+ - uses : actions/checkout@v3.1.0
15+ - uses : gocardless/github-actions/shared/actions/ruby-bundle-install@master
16+ with :
17+ known_hosts : ${{ secrets.KNOWN_HOSTS_GITHUB_KEY }}
18+ robot_ssh_key : ${{ secrets.ROBOT_READONLY_SSH_KEY }}
19+ token : ${{ secrets.ROBOT_READONLY_PACKAGE_READER }}
20+ ruby_version : ${{ matrix.ruby_version }}
21+ - name : Run specs
22+ run : RUBYOPT="-W0" bundle exec rspec --format progress --format RSpec::Github::Formatter -o /tmp/rspec.xml
23+ - name : Rubocop
24+ run : bundle exec rubocop --extra-details --display-style-guide --parallel --force-exclusion
25+ - uses : actions/upload-artifact@v2
26+ if : failure()
27+ with :
28+ path : /tmp/ci_artifacts/
You can’t perform that action at this time.
0 commit comments