From 19aa5b58b26ebc62fed342a557a3c8ce3b02f46f Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Mon, 17 Apr 2023 04:40:40 +0900 Subject: [PATCH 1/4] Migrate CI/CD platform from Travis CI to GitHub Actions --- .github/workflows/rspec.yml | 14 ++++++++++++++ .gitignore | 1 + .travis.yml | 3 --- qiita.gemspec | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/rspec.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml new file mode 100644 index 0000000..2e74f32 --- /dev/null +++ b/.github/workflows/rspec.yml @@ -0,0 +1,14 @@ +name: RSpec +on: [push, pull_request] +jobs: + rspec: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.3.1' + bundler-cache: true + - run: gem install bundler -v '< 2.0' + - run: bundle install + - run: bundle exec rake spec diff --git a/.gitignore b/.gitignore index 86b9f31..60716b6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ spec/reports test/tmp test/version_tmp tmp +/vendor/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6740d05..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: ruby -rvm: -- 2.3.1 diff --git a/qiita.gemspec b/qiita.gemspec index ad1b376..ba81bdd 100644 --- a/qiita.gemspec +++ b/qiita.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "json_schema" spec.add_development_dependency "pry" spec.add_development_dependency "rake" - spec.add_development_dependency "rspec", "2.14.1" + spec.add_development_dependency "rspec" spec.add_development_dependency "webmock", "1.20.4" end From 354a238690249a5053461795f8ca23bfea56d0d7 Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Sat, 29 Apr 2023 08:38:53 +0900 Subject: [PATCH 2/4] fix indent Update .github/workflows/rspec.yml Co-authored-by: Yuta Mizui --- .github/workflows/rspec.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 2e74f32..fd4d523 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -4,11 +4,11 @@ jobs: rspec: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: '2.3.1' - bundler-cache: true - - run: gem install bundler -v '< 2.0' - - run: bundle install - - run: bundle exec rake spec + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.3.1' + bundler-cache: true + - run: gem install bundler -v '< 2.0' + - run: bundle install + - run: bundle exec rake spec From d952df65f099386b35c0506f54d4194da2b46b99 Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Sat, 29 Apr 2023 08:40:50 +0900 Subject: [PATCH 3/4] fix line breaks format Update .github/workflows/rspec.yml Co-authored-by: Yuta Mizui --- .github/workflows/rspec.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index fd4d523..5407641 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -1,5 +1,9 @@ name: RSpec -on: [push, pull_request] + +on: + push: + pull_request: + jobs: rspec: runs-on: ubuntu-latest From 94f3d548bc4bd23a6516014b62e3e41ad9219aa3 Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Sat, 29 Apr 2023 08:42:56 +0900 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c69d941..d8676a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Unreleased + +- Migrate CI/CD platform from Travis CI to GitHub Actions + ## v1.3.5 - Add project reaction methods