Merge pull request #4 from elektronaut/dependabot/bundler/rexml-3.3.9 #12
Workflow file for this run
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
env: | |
RUBY_VERSION: 2.7 | |
CC_TEST_REPORTER_ID: bb62fb9531466af5f6c145057539c95b4b50f2003022adce399b1d8505782727 | |
name: Build | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
rubocop-test: | |
name: Rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
- name: Ruby gem cache | |
uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install Ruby gems | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install | |
- name: Check code | |
run: bundle exec rubocop | |
rspec-test: | |
name: RSpec | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
- name: Ruby gem cache | |
uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install Ruby gems | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install | |
- name: Run tests | |
run: bundle exec rspec | |
- name: Send results to Code Climate | |
uses: paambaati/[email protected] | |
if: ${{ env.CC_TEST_REPORTER_ID }} | |
env: | |
CC_TEST_REPORTER_ID: ${{ env.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: ls |