Skip to content

Commit

Permalink
add test and rubocop reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ikael21 committed Jul 14, 2024
1 parent dbc91a8 commit d3c8a33
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ruby.yml → .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruby
name: Rubocop

on:
push:
Expand Down Expand Up @@ -26,11 +26,3 @@ jobs:
bundler-cache: true
- name: Rubocop
run: bundle exec rubocop

- name: Run tests
run: bundle exec rake test

- name: Codecov coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]

permissions:
contents: read

jobs:
ruby_workflow_checkout:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0']

steps:
- uses: actions/checkout@v4

- name: Run tests
run: bundle exec rake test

- name: Codecov coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# School21 API SDK

![](https://github.com/ikael21/school21_api_sdk/actions/workflows/tests.yml/badge.svg)
[![codecov](https://codecov.io/github/ikael21/school21_api_sdk/branch/main/graph/badge.svg?token=O7I31Q7N96)](https://codecov.io/github/ikael21/school21_api_sdk)

TODO: ...
![](https://github.com/ikael21/school21_api_sdk/actions/workflows/rubocop.yml/badge.svg)

## Installation

Expand Down

0 comments on commit d3c8a33

Please sign in to comment.