mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
chore: Use GitHub Actions for CI
This commit is contained in:
parent
e639900fbc
commit
0575f3d094
22
.github/workflows/test.yml
vendored
Normal file
22
.github/workflows/test.yml
vendored
Normal file
@ -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
|
31
.travis.yml
31
.travis.yml
@ -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
|
|
@ -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.
|
**[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).
|
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
|
## Goals
|
||||||
|
@ -9,9 +9,9 @@ describe 'ruby version' do
|
|||||||
pages_versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
pages_versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
||||||
pages_ruby_version = pages_versions['ruby']
|
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_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
|
context "in #{ci_config_file} and pages ruby version" do
|
||||||
it 'match' do
|
it 'match' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user