Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
DEV: Switch from Travis to Actions (#3)
Browse files Browse the repository at this point in the history
* DEV: Switch from Travis to Actions

* remove .travis.yml
  • Loading branch information
OsamaSayegh committed Nov 28, 2020
1 parent db5d851 commit 1b34fd3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Discourse Ember Source Tests

on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: ["2.7"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundler cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gems-
- name: Setup gems
run: |
gem uninstall bundler
gem install bundler -v 1.16.2
bundle config path vendor/bundle
bundle install --jobs 4
- name: Tests
run: bundle exec rake test
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion test/ember/source_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

class Ember::SourceTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::Ember::Source::VERSION
refute_nil ::Ember::VERSION
end
end

0 comments on commit 1b34fd3

Please sign in to comment.