Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Initial creation of project (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
poloka authored Mar 9, 2021
1 parent bca5b52 commit d0d5fb7
Show file tree
Hide file tree
Showing 71 changed files with 4,021 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Description of Changes
<!--Describe (in detail) the changes in the pull request here.-->

## Motivation and Context
<!--Why is this change required? What problem does it solve? What does this add?-->

## How Has This Been Tested?
<!--Describe in detail how these changes have been tested (include environment/devices).-->

## Type of change
<!--Put an 'x' in all of the boxes that apply.-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Release activity

## Checklist:
<!--Put an 'x' in all of the boxes to assure following guidance.-->
Following the [Contributing Guidelines][3]
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works and they pass when merging upstream
- [ ] I have added an entry to the [Changelog][2] accordingly
- [ ] I have added my name to the [CONTRIBUTORS.md][1]
- [ ] I have [squashed related commits][4]

[1]: ./CONTRIBUTORS.md
[2]: ./CHANGELOG.md
[3]: ./CONTRIBUTING.md
[4]: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
53 changes: 53 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: CD

on:
release:
types:
- published

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
name: Ruby-${{matrix.ruby}}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup ruby and bundle
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rspec
- name: Run Rubocop
run: bundle exec rubocop
release:
runs-on: ubuntu-latest
name: Release to RubyGems
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
#CI will run on all pushes and PRs to verify validity of the code
name: CI

on:
push:
branches: ['**']
pull_request:
branches: ['main']
schedule:
- cron: '0 1 * * SUN'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.6
- 2.7
- 3.0
name: Ruby-${{matrix.ruby}}
continue-on-error: ${{matrix.ruby == 'head'}}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup ruby and bundle
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rspec
- name: Run Rubocop
run: bundle exec rubocop

23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
*.gem
*.rbc
Gemfile.lock
.config
.bundle
.yardoc
_yardoc
coverage
doc
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
log/*.log
coverage/
.idea
spec/internal/log
target
build
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--format documentation
--color
--require spec_helper
--order random
Loading

0 comments on commit d0d5fb7

Please sign in to comment.