.github/workflows/test.yml in net-pop-0.1.1 vs .github/workflows/test.yml in net-pop-0.1.2
- old
+ new
@@ -1,24 +1,32 @@
name: test
on: [push, pull_request]
jobs:
- build:
+ ruby-versions:
+ runs-on: ubuntu-latest
+ outputs:
+ versions: ${{ steps.versions.outputs.value }}
+ steps:
+ - id: versions
+ run: |
+ versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.4"]')
+ echo "::set-output name=value::${versions}"
+ test:
+ needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
- ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v3
- 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
+ run: bundle install
- name: Run test
run: rake test