Skip to content

Commit

Permalink
chore: run tests through GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Aug 13, 2023
1 parent 0ee7f66 commit 242dd6f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unit Tests

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ["2.7", "2.6", "2.5"]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Configure bundler without 'vscode'
run: bundle config set --local without vscode
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake test
env:
GIT_AUTHOR_NAME: flexmock CI Git Identity
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: flexmock CI Git Identity
GIT_COMMITTER_EMAIL: [email protected]

0 comments on commit 242dd6f

Please sign in to comment.