Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add links to other gems in the Google API helpers series (#3)
* Add links to other gems in the Google API helpers series * Normalize Github actions for the Google API Helpers gems.
- Loading branch information
Showing
2 changed files
with
55 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 |
---|---|---|
@@ -1,27 +1,60 @@ | ||
name: Ruby | ||
name: CI Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Ruby ${{ matrix.ruby }} | ||
continue-on-error: true | ||
|
||
strategy: | ||
matrix: | ||
ruby: | ||
- '3.2.2' | ||
ruby: ['3.1', '3.2', head] | ||
operating-system: [ubuntu-latest] | ||
|
||
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }} | ||
runs-on: ${{ matrix.operating-system }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run the default task | ||
run: bundle exec rake | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run rake | ||
run: bundle exec rake | ||
|
||
coverage: | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
|
||
name: Report test coverage to CodeClimate | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rake spec | ||
|
||
- name: Report test coverage | ||
uses: paambaati/codeclimate-action@v3.2.0 | ||
env: | ||
CC_TEST_REPORTER_ID: 9cee910e20024e0fcb3a6a4ad2e7a71a2031409adac7134e196627bf2ccecf02 | ||
with: | ||
coverageLocations: ${{github.workspace}}/coverage/lcov/*.lcov:lcov |
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