workflow to validate versions
This commit is contained in:
29
.github/workflows/versions.yml
vendored
Normal file
29
.github/workflows/versions.yml
vendored
Normal file
@@ -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: npm install
|
||||
run: ruby -v
|
||||
16
.github/workflows/workflow.yml
vendored
16
.github/workflows/workflow.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user