diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..e442f1a --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,20 @@ +name: Ruby + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Ruby 2.6 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.x + - name: Build and test with Rake + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + make test diff --git a/Makefile b/Makefile index 1a5a709..9551a7a 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,7 @@ install: gem build json-api-vanilla.gemspec && gem install ./json-api-vanilla-*.gem -.PHONY: install +test: + rspec + +.PHONY: install test