Skip to content

Commit

Permalink
begin migrating from travis to github actions (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdnewman committed Jul 4, 2023
1 parent c88e2df commit 1095499
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
6 changes: 0 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ engines:
config:
languages:
- ruby
- javascript
fixme:
enabled: true
rubocop:
enabled: true
channel: rubocop-0-68
ratings:
paths:
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
- "**.rb"
exclude_paths:
- spec/**/*
38 changes: 38 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup Code Climate test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Build and test with RSpec
run: |
bundle exec rspec
# - name: Publish code coverage
# run: |
# export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
# ./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit 1095499

Please sign in to comment.