diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f36a254 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +--- +name: ci + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: '35 4 * * 4' # weekly on thursday morning + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: + - '2.5' + - '2.6' + - '2.7' + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies + run: | + bundle + - name: Test + run: | + bundle exec rake ci diff --git a/.travis.yml b/.travis.yml index da218f6..c4b9a98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ services: - docker script: -- bundle exec rake travis +- bundle exec rake ci diff --git a/CHANGELOG.md b/CHANGELOG.md index fa504ec..25dd2cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog -## 3.1.1 (october 3, 2020) +## 3.1.2 + +OTHER: + +- start using Github Actions CI for tests in addition to Travis CI + +## 3.1.1 (October 3, 2020) IMPROVEMENTS: diff --git a/README.md b/README.md index 03d86bd..51a4ac3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # dyndnsd.rb -[![Build Status](https://travis-ci.com/cmur2/dyndnsd.svg?branch=master)](https://travis-ci.com/cmur2/dyndnsd) [![Dependencies](https://badges.depfu.com/badges/4f25da8493f7a29f652ac892fbf9227b/overview.svg)](https://depfu.com/github/cmur2/dyndnsd) +[![Build Status](https://travis-ci.com/cmur2/dyndnsd.svg?branch=master)](https://travis-ci.com/cmur2/dyndnsd) ![ci](https://github.com/cmur2/dyndnsd/workflows/ci/badge.svg) [![Dependencies](https://badges.depfu.com/badges/4f25da8493f7a29f652ac892fbf9227b/overview.svg)](https://depfu.com/github/cmur2/dyndnsd) A small, lightweight and extensible DynDNS server written with Ruby and Rack. diff --git a/Rakefile b/Rakefile index 00af25b..996dfda 100644 --- a/Rakefile +++ b/Rakefile @@ -28,4 +28,4 @@ end task default: [:rubocop, :spec, 'bundle:audit', :solargraph] -task travis: ['solargraph:init', :default, :hadolint] +task ci: ['solargraph:init', :default, :hadolint]