Skip to content

Commit

Permalink
Merge pull request #225 from email-spec/fixes/ci
Browse files Browse the repository at this point in the history
Stop using Travis CI, start using GitHub Actions CI
  • Loading branch information
etagwerker authored Jul 22, 2024
2 parents d2fae71 + 6897937 commit be88941
Show file tree
Hide file tree
Showing 16 changed files with 765 additions and 18 deletions.
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] "
labels: 'bug'
assignees: 'black-bunny-brigade'

---

**IMPORTANT: please make sure you ask yourself all intro questions and fill all sections of the template.**

**Before we start...:**

- [ ] I checked the documentation and found no answer
- [ ] I checked to make sure that this issue has not already been filed
- [ ] I'm reporting the issue to the correct repository (for multi-repository projects)


**Version, Branch, or Commit:**

Inform what version, branch, commit of email-spec you are using.

**Expected behavior:**

Please include a detailed description of the behavior you were expecting when you encountered this issue.

**Actual behavior:**

Please include a detailed description of the actual behavior of the application.

**Steps to reproduce:**

How do I achieve this behavior? Use the following format to provide a step-by-step guide:

1. Step 1: ...
2. Step 2: ...

**Context and environment:**

Provide any relevant information about your setup (Customize the list accordingly based on what info is relevant to this project)

1. Version of the software the issue is being opened for.
2. Operating System
3. Operating System version
4. Ruby version

_Delete any information that is not relevant._

**Logs**

Include relevant log snippets or files here.

**I will abide by the [code of conduct] (https://github.com/email-spec/email-spec/blob/master/CODE_OF_CONDUCT.md)**
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Feature request
about: Request a new feature
title: "[REQUEST]"
labels: 'enhancement'
assignees: ''

---

**IMPORTANT: please make sure you ask yourself all intro questions and fill all sections of the template.**

**Before we start...:**

- [ ] I checked the documentation and didn't find this feature
- [ ] I checked to make sure that this feature has not already been requested


**Branch/Commit:**

Inform what branch/commit/version of "email-spec" you are using.

**Describe the feature:**

Please include a detailed description of the feature you are requesting and any detail on it’s expected behavior.

> **As a \<role name\>**
> **I do \<something\>**
> **And then I do \<another action\>**
> **And I see \<some result\>**
**Problem:**

Please include a detailed description of the problem this feature would solve.

> **As a \<role name\>**
> **I want to \<do something\>**
> **So that I can achieve a \<goal\>**
**Mockups:**

Include any mockup idea related to the requested feature if it applies.

**Resources:**

If you have resources related to the implementation or research for this feature, add them here.

**I will abide by the [code of conduct](https://github.com/email-spec/email-spec/blob/main/CODE_OF_CONDUCT.md)**
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .github/workflows/main.yml

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-ruby:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu]
ruby-version: ["3.1", "3.2", "3.3"]
steps:
- uses: actions/checkout@v4
- name: Setup Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Build and run tests
run: |
bundle install --jobs 4 --retry 3
bundle exec appraisal install
bundle exec appraisal rake spec
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Appraisals
appraise 'rails_6_1' do
gem 'actionmailer', '~> 6.1.0'
end

appraise 'rails_7_0' do
gem 'actionmailer', '~> 7.0.0'
end

appraise 'rails_7_1' do
gem 'actionmailer', '~> 7.1.0'
end
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
source 'https://rubygems.org'
source "https://rubygems.org"

gemspec

group :development, :test do
gem "appraisal"
gem "debug", require: false
gem "net-smtp", require: false
end
1 change: 0 additions & 1 deletion email_spec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Gem::Specification.new do |s|

s.add_development_dependency "rake", ">= 0.8.7"
s.add_development_dependency "cucumber", "~> 1.3.17"
s.add_development_dependency "actionmailer", "~> 4.2"
s.add_development_dependency "rack-test"
s.add_development_dependency "rspec", "~> 3.1"

Expand Down
13 changes: 13 additions & 0 deletions gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "actionmailer", "~> 6.1.0"

group :development, :test do
gem "appraisal"
gem "debug", require: false
gem "net-smtp", require: false
end

gemspec path: "../"
174 changes: 174 additions & 0 deletions gemfiles/rails_6_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
PATH
remote: ..
specs:
email_spec (2.2.2)
htmlentities (~> 4.3.3)
launchy (>= 2.1, < 4.0)
mail (~> 2.7)

GEM
remote: https://rubygems.org/
specs:
actionmailer (6.1.7.8)
actionpack (= 6.1.7.8)
actionview (= 6.1.7.8)
activejob (= 6.1.7.8)
activesupport (= 6.1.7.8)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.1.7.8)
actionview (= 6.1.7.8)
activesupport (= 6.1.7.8)
rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.1.7.8)
activesupport (= 6.1.7.8)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.1.7.8)
activesupport (= 6.1.7.8)
globalid (>= 0.3.6)
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
builder (3.3.0)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (5.0.0)
concurrent-ruby (1.3.3)
crass (1.0.6)
cucumber (1.3.20)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.2)
database_cleaner (1.99.0)
date (3.3.4)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.1)
erubi (1.13.0)
gherkin (2.12.2)
multi_json (~> 1.3)
globalid (1.2.1)
activesupport (>= 6.1)
htmlentities (4.3.4)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
launchy (3.0.1)
addressable (~> 2.8)
childprocess (~> 5.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
matrix (0.4.2)
mini_mime (1.1.5)
minitest (5.24.1)
multi_json (1.15.0)
multi_test (1.1.0)
net-imap (0.4.14)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-protocol
nokogiri (1.16.6-arm64-darwin)
racc (~> 1.4)
power_assert (2.0.3)
psych (5.1.2)
stringio
public_suffix (6.0.0)
racc (1.8.0)
rack (2.2.9)
rack-test (2.1.0)
rack (>= 1.3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
stringio (3.1.1)
test-unit (3.6.2)
power_assert
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.16)

PLATFORMS
arm64-darwin

DEPENDENCIES
actionmailer (~> 6.1.0)
appraisal
capybara
cucumber (~> 1.3.17)
database_cleaner
debug
email_spec!
net-smtp
rack-test
rake (>= 0.8.7)
rspec (~> 3.1)
test-unit

BUNDLED WITH
2.5.10
13 changes: 13 additions & 0 deletions gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "actionmailer", "~> 7.0.0"

group :development, :test do
gem "appraisal"
gem "debug", require: false
gem "net-smtp", require: false
end

gemspec path: "../"
Loading

0 comments on commit be88941

Please sign in to comment.