forked from derfred/rubycas-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from konvenit/MP-48514-migrate-to-gh-actions
MP-48514 migrate to gh-actions
- Loading branch information
Showing
2 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
matrix: | ||
rvm: | ||
- '3.0' | ||
- '3.1' | ||
name: Ruby ${{ matrix.ruby }} test | ||
steps: | ||
- name: Add SSH key | ||
# this is needed to access private repositories | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.PRIVATE_REPO_PRIVATE_KEY }}" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
echo ${{ secrets.PRIVATE_REPO_KNOW_HOST }} >> ~/.ssh/known_hosts | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.rvm }} | ||
bundler-cache: true | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Run RuboCop | ||
run: bundle exec rubocop | ||
|
||
- name: Run RSpec | ||
env: | ||
JENKINS: true | ||
run: bundle exec rspec --profile |
This file was deleted.
Oops, something went wrong.