diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d3c8f06 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Ruby Gem Test + +on: + push: + branches: [ main, test-workflow ] + pull_request: + branches: [ main, test-workflow ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['1.8.7', '1.9.2', '1.9.3', '2.0.0'] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + + - name: Set up dependencies + run: bundle install + + - name: Run tests + run: bundle exec rake