diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml new file mode 100644 index 0000000..3c6172d --- /dev/null +++ b/.github/workflows/versions.yml @@ -0,0 +1,29 @@ +name: ruby-versions +on: + push: + branches: + - master + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' +jobs: + run: + name: Ruby + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest, windows-latest, macos-latest] + version: [2.4.x, 2.5.x, 2.6.x, 2.7.x] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: use-ruby ${{ matrix.version }} + uses: ./ + with: + ruby-version: ${{ matrix.version}} + + - name: ruby version + run: ruby -v diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 22e0e06..834c53d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,5 +1,13 @@ -name: Main workflow -on: [push] +name: build-test +on: + push: + branches: + - master + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' jobs: run: name: Run @@ -11,10 +19,10 @@ jobs: - name: Checkout uses: actions/checkout@master - - name: Set Node.js 10.x + - name: Set Node.js 12.x uses: actions/setup-node@master with: - version: 10.x + version: 12.x - name: npm install run: npm install diff --git a/README.md b/README.md index 1662fa8..e8b12c8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # setup-ruby
This action sets up a ruby environment for versions which are installed on the [Actions Virtual Environments](https://github.com/actions/virtual-environments). Because virtual environments are updated, a workflow should only be bound to a minor versions.