From 47b3454d632d3301759bd5476a950a3963b70bf8 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Tue, 11 Feb 2020 21:53:39 -0600 Subject: Update Actions 1. Remove rvm where possible, add ruby-head, misc 2. Add mingw & mswin Windows testing --- .github/workflows/macos.yml | 20 +++++++++++++------- .github/workflows/ubuntu.yml | 27 +++++++++++++-------------- .github/workflows/windows.yml | 34 ++++++++++++++++++---------------- 3 files changed, 44 insertions(+), 37 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 7d20478..336b691 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,11 +5,17 @@ on: [push, pull_request] jobs: build: runs-on: macos-latest + strategy: + fail-fast: false + matrix: + ruby: [ 2.7, 2.6, 2.5, 2.4 ] steps: - - uses: actions/checkout@master - - name: Install dependencies - run: | - gem install bundler --no-document - bundle install - - name: Run test - run: rake + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: bundle install + - name: Run test + run: rake diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index aae178f..efd01ea 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -6,19 +6,18 @@ jobs: build: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - ruby: [ '2.6', '2.5', '2.4', 'ruby-head'] + ruby: [ ruby-head, 2.7, 2.6, 2.5, 2.4 ] steps: - - name: Install libraries - run: sudo apt install haveged - - uses: actions/checkout@master - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: | - gem install bundler --no-document - bundle install - - name: Run test - run: rake + - name: Install libraries + run: sudo apt install haveged + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: bundle install + - name: Run test + run: rake diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 89b2443..1e11460 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,20 +8,22 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + ruby: [ mingw, mswin, 2.7, 2.6, 2.5, 2.4 ] steps: - - uses: actions/checkout@master - - name: Set up Ruby - uses: actions/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: Update MSYS2 - uses: MSP-Greg/msys2-action@master - with: - base: update - - name: Install dependencies - run: | - gem update --system --no-document --conservative - bundle install - - name: Run test - run: rake + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: MSP-Greg/actions-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + base: update + - name: Install dependencies + run: bundle install + - name: Run test + if: matrix.ruby != 'mswin' + run: rake + - name: Run test + if: matrix.ruby == 'mswin' + shell: cmd + run: | + call "%VCVARS%" + rake -- cgit v1.2.3