diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml new file mode 100644 index 000000000..ceecb3e5f --- /dev/null +++ b/.github/workflows/linux.yaml @@ -0,0 +1,32 @@ +name: Linux + +on: [push, pull_request] +jobs: + build: + name: >- + Linux | Ruby: ${{ matrix.ruby }} + runs-on: "ubuntu-latest" + strategy: + fail-fast: false + matrix: + ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"] + steps: + - name: repo checkout + uses: actions/checkout@v1 + with: + fetch-depth: 10 + - name: load ruby, update gcc + uses: MSP-Greg/actions-ruby@master + with: + ruby-version: ${{ matrix.ruby }} + base: update + - name: update RubyGems, Bundler + run: gem update --system --no-document --conservative + - name: bundle install + run: bundle install --jobs=3 --retry=3 + - name: test + run: | + ruby -v + bundle exec rake + env: + CI: true diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml new file mode 100644 index 000000000..49e6c4a8d --- /dev/null +++ b/.github/workflows/macos.yaml @@ -0,0 +1,32 @@ +name: macOS + +on: [push, pull_request] +jobs: + build: + name: >- + macOS | Ruby: ${{ matrix.ruby }} + runs-on: "macos-latest" + strategy: + fail-fast: false + matrix: + ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"] + steps: + - name: repo checkout + uses: actions/checkout@v1 + with: + fetch-depth: 10 + - name: load ruby, update gcc + uses: MSP-Greg/actions-ruby@master + with: + ruby-version: ${{ matrix.ruby }} + base: update + - name: update RubyGems, Bundler + run: gem update --system --no-document --conservative + - name: bundle install + run: bundle install --jobs=3 --retry=3 + - name: test + run: | + ruby -v + bundle exec rake + env: + CI: true diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3d7ba8301..ab81830fd 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,12 +4,12 @@ on: [push, pull_request] jobs: build: name: >- - windows-latest Ruby: ${{ matrix.ruby }} - runs-on: 'windows-latest' + Windows | Ruby: ${{ matrix.ruby }} + runs-on: "windows-latest" strategy: fail-fast: false matrix: - ruby: [ '2.4.x', '2.5.x', '2.6.x', '9.9.x' ] + ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"] steps: - name: repo checkout uses: actions/checkout@v1 @@ -21,11 +21,11 @@ jobs: ruby-version: ${{ matrix.ruby }} base: update - name: update RubyGems, Bundler - run: gem update --system --no-document --conservative + run: gem update --system --no-document --conservative - name: bundle install - run: bundle install --jobs=3 --retry=3 + run: bundle install --jobs=3 --retry=3 - name: test - run: | + run: | ruby -v bundle exec rake env: