Skip to content

Commit

Permalink
Add links to other gems in the Google API helpers series (#3)
Browse files Browse the repository at this point in the history
* Add links to other gems in the Google API helpers series

* Normalize Github actions for the Google API Helpers gems.
  • Loading branch information
jcouball committed Dec 8, 2023
1 parent 2aa6534 commit 5c4115a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 13 deletions.
59 changes: 46 additions & 13 deletions .github/workflows/main.yml
@@ -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
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -9,6 +9,15 @@

Unofficial helpers and extensions for the Google Discovery V1 API

Gems in the Google API helper, extensions, and examples series:

* [discovery_v1](https://github.com/main-branch/discovery_v1)
* [drive_v3](https://github.com/main-branch/drive_v3)
* [sheets_v4](https://github.com/main-branch/sheets_v4)

## Contents

* [Contents](#contents)
* [Installation](#installation)
* [Examples](#examples)
* [Important links](#important-links)
Expand Down

0 comments on commit 5c4115a

Please sign in to comment.