diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..47ac61e2 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,29 @@ +name: Ruby Build +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [2.4.0, 2.6.0, 3.0.0, jruby-9.2.18.0] + steps: + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v2 + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '9' + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: exec rake + run: bundle exec rake \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0448f02d..92a0a600 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Gemfile.lock .* !.sprockets* !lib/gollum/public/gollum/stylesheets/_styles.css +!.github* diff --git a/README.md b/README.md index 1f4d60f8..3e19ae73 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,11 @@ gollum -- A git-based Wiki ==================================== [![Gem Version](https://badge.fury.io/rb/gollum.svg)](http://badge.fury.io/rb/gollum) -[![Build Status](https://travis-ci.org/gollum/gollum.svg?branch=master)](https://travis-ci.org/gollum/gollum) +![Build Status](https://github.com/gollum/gollum/actions/workflows/test.yaml/badge.svg) [![Open Source Helpers](https://www.codetriage.com/gollum/gollum/badges/users.svg)](https://www.codetriage.com/gollum/gollum) [![Cutting Edge Dependency Status](https://dometto-cuttingedge.herokuapp.com/github/gollum/gollum/svg 'Cutting Edge Dependency Status')](https://dometto-cuttingedge.herokuapp.com/github/gollum/gollum/info) + **Gollum version 5.0 is out!** See [here](https://github.com/gollum/gollum/wiki/5.0-release-notes) for a list of changes and new features compared to Gollum version 4.x, and see some [Screenshots](https://github.com/gollum/gollum/wiki/Screenshots) of Gollum's features. ## DESCRIPTION diff --git a/test/test_migrate.rb b/test/test_migrate.rb index 22853652..d387a2a3 100644 --- a/test/test_migrate.rb +++ b/test/test_migrate.rb @@ -44,7 +44,7 @@ def load_script(**args) end end -unless ENV['TRAVIS'] +unless ENV['CI'] context '4.x -> 5.x tag migrator' do include Rack::Test::Methods