mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Migrate from Travis CI to GitHub Actions
This commit is contained in:
parent
28a7478d83
commit
47acf91edf
2 changed files with 36 additions and 21 deletions
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu]
|
||||
# We still kind of support Ruby 1.8.7
|
||||
ruby: [2.5, 2.6, 2.7, 3.0, head, jruby]
|
||||
|
||||
name: >-
|
||||
${{matrix.os}}-ruby${{matrix.ruby}}
|
||||
runs-on: ${{matrix.os}}-latest
|
||||
continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}}
|
||||
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up ruby and bundle
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{matrix.ruby}}
|
||||
bundler-cache: true
|
||||
|
||||
- name: Run rake
|
||||
run: |
|
||||
bundle exec rake
|
||||
21
.travis.yml
21
.travis.yml
|
|
@ -1,21 +0,0 @@
|
|||
sudo: false
|
||||
language: ruby
|
||||
cache: bundler
|
||||
rvm:
|
||||
- 1.8.7
|
||||
- ree
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
- 2.1
|
||||
- 2.2
|
||||
- 2.3.0
|
||||
- ruby-head
|
||||
- jruby-1.7
|
||||
- jruby-9
|
||||
- rbx-2
|
||||
matrix:
|
||||
allow_failures:
|
||||
- rvm: ruby-head
|
||||
- rvm: rbx-2
|
||||
before_install:
|
||||
- gem update bundler
|
||||
Loading…
Reference in a new issue