diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..99a987753 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Unit Tests + +on: [push, pull_request] +jobs: + build: + name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}" + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"] + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 10 + - name: Select Ruby Version + uses: eregon/use-ruby-action@v1 + with: + ruby-version: ${{ matrix.ruby }} + base: update + - name: Update RubyGems & Bundler + run: gem update --system --no-document --conservative + - name: Install Dependencies + run: bundle install --jobs=3 --retry=3 + - name: Run Test + run: ruby -v && bundle exec rake + env: + CI: true diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml deleted file mode 100644 index ceecb3e5f..000000000 --- a/.github/workflows/linux.yaml +++ /dev/null @@ -1,32 +0,0 @@ -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 deleted file mode 100644 index 49e6c4a8d..000000000 --- a/.github/workflows/macos.yaml +++ /dev/null @@ -1,32 +0,0 @@ -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 deleted file mode 100644 index ab81830fd..000000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Windows - -on: [push, pull_request] -jobs: - build: - name: >- - 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"] - 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