Skip to content

Commit

Permalink
Run tests on GitHub Actions
Browse files Browse the repository at this point in the history
Travis CI does not offer free minutes for open source projects. GitHub Actions ha sbetter integration with GitHub. Migrating does require dropping Ruby 1.9 and 2.0 from CI matrix, but these have not been maintained for years now.
  • Loading branch information
lautis committed Jan 1, 2021
1 parent af52b9a commit b5522b7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 49 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,45 @@
name: Ruby
name: CI

on: [push]
on: [push, pull_request]

jobs:
test:
name: >-
Test (${{ matrix.ruby }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gemfile: [Gemfile]
ruby:
- "2.1"
- "2.2"
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- jruby
- truffleruby
include:
- ruby: 2.5
gemfile: gemfiles/rubyracer
- ruby: jruby
gemfile: gemfiles/rubyrhino
- ruby: 2.5
gemfile: gemfiles/alaska
alaska: 1
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
ALASKA: ${{ matrix.alaska}}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake spec
lint:
runs-on: ubuntu-latest

Expand Down
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ UglifyJS currently is extensively tested with ES5, but also includes experimenta

More stable alternatives for working with ES6 code is to first transpile to ES5 with e.g. [babel-transpiler](https://github.com/babel/ruby-babel-transpiler) or using [Closure Compiler](https://github.com/documentcloud/closure-compiler) to directly minify ES6 code.

[![Build Status](https://travis-ci.org/lautis/uglifier.svg?branch=master)](https://travis-ci.org/lautis/uglifier)

## ES6 / ES2015+ / Harmony mode

When using Uglifier with ES6 syntax without any options, an error will be
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

if ENV["ALASKA"]
if ENV["ALASKA"] == "1"
require 'alaska/runtime'
require 'tempfile'
ExecJS.runtime = Alaska::Runtime.new
Expand Down

0 comments on commit b5522b7

Please sign in to comment.