-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
504 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<% releases.each_with_index do |r, idx| %> | ||
## <%= r.version %> <%= r.date %> | ||
|
||
<% if r.summary %> | ||
<%= r.summary %> | ||
|
||
<% end %> | ||
|
||
<% if r.added? %> | ||
### Added | ||
|
||
<% r.added.each do |log| %> | ||
- <%= log %> | ||
<% end %> | ||
|
||
<% end %> | ||
<% if r.fixed? %> | ||
### Fixed | ||
|
||
<% r.fixed.each do |log| %> | ||
- <%= log %> | ||
<% end %> | ||
|
||
<% end %> | ||
<% if r.changed? %> | ||
### Changed | ||
|
||
<% r.changed.each do |log| %> | ||
- <%= log %> | ||
<% end %> | ||
<% end %> | ||
<% curr_ver = r.date ? "v#{r.version}" : 'master' %> | ||
<% prev_rel = releases[idx + 1] %> | ||
<% if prev_rel %> | ||
<% ver_range = "v#{prev_rel.version}...#{curr_ver}" %> | ||
|
||
[Compare <%=ver_range%>](https://github.com/rom-rb/<%= project.name %>/compare/<%=ver_range%>) | ||
<% end %> | ||
|
||
<% end %> |
10 changes: 10 additions & 0 deletions
10
.github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: "⚠️ Please don't ask for support via issues" | ||
about: See CONTRIBUTING.md for more information | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: See CONTRIBUTING.md for more information | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Before you submit this: WE ONLY ACCEPT BUG REPORTS AND FEATURE REQUESTS** | ||
|
||
For more information see `CONTRIBUTING.md`. | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
|
||
Provide detailed steps to reproduce, an executable script would be best. | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Your environment** | ||
|
||
- Affects my production application: **YES/NO** | ||
- Ruby version: ... | ||
- OS: ... |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: "\U0001F6E0 Feature request" | ||
about: See CONTRIBUTING.md for more information | ||
title: '' | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
Summary of what the feature is supposed to do. | ||
|
||
## Examples | ||
|
||
Code examples showing how the feature could be used. | ||
|
||
## Resources | ||
|
||
Additional information, like a link to the discussion forum thread where the feature was discussed etc. |
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# this file is managed by rom-rb/devtools project | ||
|
||
name: ci | ||
|
||
"on": | ||
push: | ||
paths: | ||
- ".github/workflows/ci.yml" | ||
- "lib/**" | ||
- "*.gemspec" | ||
- "spec/**" | ||
- "Rakefile" | ||
- "Gemfile" | ||
- "Gemfile.devtools" | ||
- ".rubocop.yml" | ||
- "project.yml" | ||
pull_request: | ||
branches: | ||
- master | ||
create: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- "2.7.0" | ||
- "2.6" | ||
- "2.5" | ||
- "2.4" | ||
- "jruby" | ||
include: | ||
- ruby: "2.6" | ||
coverage: "true" | ||
env: | ||
COVERAGE: ${{matrix.coverage}} | ||
COVERAGE_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install package dependencies | ||
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS" | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{matrix.ruby}} | ||
- name: Install latest bundler | ||
run: | | ||
gem install bundler --no-document | ||
bundle config set without 'tools benchmarks docs' | ||
- name: Bundle install | ||
run: bundle install --jobs 4 --retry 3 | ||
- name: Run all tests | ||
run: bundle exec rake | ||
- name: Run codacy-coverage-reporter | ||
uses: codacy/codacy-coverage-reporter-action@master | ||
if: env.COVERAGE == 'true' && env.COVERAGE_TOKEN != '' | ||
with: | ||
project-token: ${{secrets.CODACY_PROJECT_TOKEN}} | ||
coverage-reports: coverage/coverage.xml | ||
release: | ||
runs-on: ubuntu-latest | ||
if: contains(github.ref, 'tags') && github.event_name == 'create' | ||
needs: tests | ||
env: | ||
GITHUB_LOGIN: rom-bot | ||
GITHUB_TOKEN: ${{secrets.GH_PAT}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install package dependencies | ||
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS" | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
- name: Install dependencies | ||
run: gem install ossy --no-document | ||
- name: Trigger release workflow | ||
run: | | ||
tag=$(echo $GITHUB_REF | cut -d / -f 3) | ||
ossy gh w rom-rb/devtools release --payload "{\"tag\":\"$tag\",\"tag_creator\":\"$GITHUB_ACTOR\",\"repo\":\"$GITHUB_REPOSITORY\"}" |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# this file is managed by rom-rb/devtools project | ||
|
||
name: docsite | ||
|
||
on: | ||
push: | ||
paths: | ||
- docsite/** | ||
- .github/workflows/docsite.yml | ||
branches: | ||
- master | ||
- release-** | ||
tags: | ||
|
||
jobs: | ||
update-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: "2.6.x" | ||
- name: Set up git user | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "rom-bot" | ||
- name: Install dependencies | ||
run: gem install ossy --no-document | ||
- name: Update release branches | ||
run: | | ||
branches=`git log --format=%B -n 1 $GITHUB_SHA | grep "docsite:release-" || echo "nothing"` | ||
if [[ ! $branches -eq "nothing" ]]; then | ||
for b in $branches | ||
do | ||
name=`echo $b | ruby -e 'puts gets[/:(.+)/, 1].gsub(/\s+/, "")'` | ||
echo "merging $GITHUB_SHA to $name" | ||
git checkout -b $name --track origin/$name | ||
echo `git log -n 1` | ||
git cherry-pick $GITHUB_SHA -m 1 | ||
done | ||
git push --all "https://rom-bot:${{secrets.GH_PAT}}@github.com/$GITHUB_REPOSITORY.git" | ||
git checkout master | ||
else | ||
echo "no need to update branches" | ||
fi | ||
- name: Trigger rom-rb.org deploy | ||
env: | ||
GITHUB_LOGIN: rom-bot | ||
GITHUB_TOKEN: ${{secrets.GH_PAT}} | ||
run: ossy github workflow rom-rb/rom-rb.org ci |
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,2 +1,4 @@ | ||
--color | ||
--require spec_helper | ||
--order random | ||
--warnings |
Oops, something went wrong.