Skip to content

Commit 97099c0

Browse files
authored
Merge pull request #119 from rails/flavorjones-port-ci-to-github-actions
ci: add github actions workflow
2 parents b41bc7a + e73f3e9 commit 97099c0

File tree

3 files changed

+48
-32
lines changed

3 files changed

+48
-32
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: ci
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
- v*.*.x
11+
tags:
12+
- v*.*.*
13+
pull_request:
14+
types: [opened, synchronize]
15+
branches:
16+
- '*'
17+
18+
jobs:
19+
cruby:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
ruby: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "ruby-head"]
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{matrix.ruby}}
30+
bundler-cache: true
31+
- run: bundle exec rake
32+
33+
jruby:
34+
continue-on-error: true # nokogiri on jruby has different behavior
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
ruby: ["jruby-9.2", "jruby-head"]
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: ruby/setup-ruby@v1
43+
with:
44+
ruby-version: ${{matrix.ruby}}
45+
bundler-cache: true
46+
- run: bundle exec rake

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Contributing to Rails Html Sanitizers
22
=====================
33

4-
[![Build Status](https://travis-ci.org/rails/rails-html-sanitizer.svg?branch=master)](https://travis-ci.org/rails/rails-html-sanitizer)
4+
[![Build Status](https://github.com/rails/rails-html-sanitizer/actions/workflows/ci.yml/badge.svg)](https://github.com/rails/rails-html-sanitizer/actions/workflows/ci.yml)
55

66
Rails Html Sanitizers is work of [many contributors](https://github.com/rails/rails-html-sanitizer/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rails/rails-html-sanitizer/pulls), [propose features and discuss issues](https://github.com/rails/rails-html-sanitizer/issues).
77

@@ -88,7 +88,7 @@ git push origin my-feature-branch -f
8888

8989
#### Check on Your Pull Request
9090

91-
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
91+
Go back to your pull request after a few minutes and see whether it passed muster with CI. Everything should look green, otherwise fix issues and amend your commit as described above.
9292

9393
#### Be Patient
9494

0 commit comments

Comments
 (0)