Skip to content

Commit

Permalink
Github automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwo committed Sep 13, 2020
1 parent 5e0c3ad commit 0dcedf6
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: Run tests

on: [pull_request, push]

jobs:
unit_tests:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Restore gems from cache
uses: actions/cache@v2
env:
cache-name: ruby-gems-cache
with:
path: ./.gems
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/dbml.gemspec') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Install gems
run: bundle install --path=./.gems --jobs=4

- name: Run tests
run: bundle exec rake test

0 comments on commit 0dcedf6

Please sign in to comment.