diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e28c56f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7.1 + + - name: Install dependencies + run: ./script/bootstrap + + - name: Run tests + run: ./script/cibuild diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 23e20cd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -#bootstrap and build -before_script: "./script/bootstrap" -script: "./script/cibuild" - -#environment -language: ruby -rvm: - - 2.7.1 - -addons: - apt: - packages: - - libcurl4-openssl-dev - -before_install: - - gem update --system - -branches: - only: - - gh-pages - - /.*/ - -notifications: - email: false - -env: - global: - - NOKOGIRI_USE_SYSTEM_LIBRARIES=true - -sudo: false -cache: bundler diff --git a/README.md b/README.md index 894937f..b5c2b51 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ **[ChooseALicense.com](https://choosealicense.com)** aims to provide **accurate**, **non-judgmental**, and **understandable** information about popular **open source licenses** in order to **help people make informed decisions** about the projects they start, maintain, contribute to, and use. -[![Build Status](https://travis-ci.org/github/choosealicense.com.svg?branch=gh-pages)](https://travis-ci.org/github/choosealicense.com) - We catalog [select](CONTRIBUTING.md#adding-a-license) open source licenses with a [Jekyll collection](https://jekyllrb.com/docs/collections/) (in `_licenses`). The catalog is used to render [ChooseALicense.com](https://choosealicense.com) and is regularly vendored into [Licensee](https://github.com/licensee/licensee), which GitHub uses to provide a [license chooser and license detection](https://help.github.com/articles/adding-a-license-to-a-repository/), a [licenses API](https://developer.github.com/v3/licenses/), and to [display license descriptions and metadata](https://github.com/blog/2335-open-source-license-descriptions-and-metadata). ## Goals diff --git a/spec/ci_ruby_version_spec.rb b/spec/ci_ruby_version_spec.rb index 6809848..472edce 100644 --- a/spec/ci_ruby_version_spec.rb +++ b/spec/ci_ruby_version_spec.rb @@ -9,9 +9,9 @@ describe 'ruby version' do pages_versions = JSON.parse(open('https://pages.github.com/versions.json').read) pages_ruby_version = pages_versions['ruby'] - ci_config_file = '.travis.yml' + ci_config_file = '.github/workflows/test.yml' ci_config = YAML.load_file(ci_config_file) - ci_ruby_version = ci_config['rvm'][0] + ci_ruby_version = ci_config['jobs']['test']['steps'][1]['with']['ruby-version'] context "in #{ci_config_file} and pages ruby version" do it 'match' do