Skip to content

Commit

Permalink
Merge branch 'ello-replace-travis-with-github-action'
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed Jul 22, 2023
2 parents 4dd75ec + f4d6993 commit d2aef58
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tests

on: [push, pull_request]

defaults:
run:
shell: bash


jobs:
specs:
name: 'run-specs'
# skip on [ci skip] and do not run 2 on push and interal PR
if: (contains(github.event.commits[0].message, '[ci skip]') == false) && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
continue-on-error: ${{ matrix.allow_failure || false }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0
bundler-cache: true

- name: run specs
run: |
bundle exec rake
# needs the right code climate reporter id
# - name: Test & publish code coverage
# uses: paambaati/codeclimate-action@v3.0.0
# env:
# CC_TEST_REPORTER_ID: <code_climate_reporter_id>
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.0

0 comments on commit d2aef58

Please sign in to comment.