Skip to content

Commit

Permalink
chore: add github CI configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Sep 11, 2024
1 parent 0d0b19a commit 14255f3
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Provide configs
2. Run command
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Context (please complete the following information):**
- Gem version
- Ruby version
- Rails version
- Gruf version
- Faraday version

**Additional context**
Add any other context about the problem here.
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Context

<!--
Short description about the feature and the motivation/issue behind it
-->
-

## Related tickets

-

# What's inside

<!--
List of features and changes (or highlights) (from the code perspective)
The purpose of this list is to track the progress if it's WIP (use checkboxes)
and to emphasize the critical parts (which you'd like to pay reviewers attention to)
-->
- [x] A

# Checklist:

- [ ] I have added tests
- [ ] I have made corresponding changes to the documentation
50 changes: 50 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]

jobs:
lint:
runs-on: ubuntu-latest
env:
RUBY_VERSION: "3.3"
name: Rubocop
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby w/ same version as image
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- name: Install dependencies
run: |
gem install dip
dip bundle install
- name: Run linter
run: dip rubocop

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3' ]
env:
RUBY_VERSION: ${{ matrix.ruby }}
name: Ruby ${{ matrix.ruby }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby w/ same version as image
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
gem install dip
dip provision
- name: Run tests
run: dip appraisal rspec --format RspecJunitFormatter --out test-results/rspec_${{ matrix.ruby }}.xml --format documentation

0 comments on commit 14255f3

Please sign in to comment.