From 4c1024e261b85e028630891e17da8f327f78d2de Mon Sep 17 00:00:00 2001 From: Masatoshi Iwasaki Date: Wed, 1 Jan 2020 15:06:13 +0900 Subject: [PATCH] Install maintaned rubies on Ubutu 18.04 and 16.04 --- .../workflows/{linux.yml => ubuntu1604.yml} | 6 +++-- .github/workflows/ubuntu1804.yml | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) rename .github/workflows/{linux.yml => ubuntu1604.yml} (74%) create mode 100644 .github/workflows/ubuntu1804.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/ubuntu1604.yml similarity index 74% rename from .github/workflows/linux.yml rename to .github/workflows/ubuntu1604.yml index 72b5b92..7926a50 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/ubuntu1604.yml @@ -1,4 +1,4 @@ -name: 'Linux' +name: 'Ubuntu 16.04' on: pull_request: @@ -9,7 +9,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-16.04 steps: - uses: actions/checkout@master @@ -20,4 +20,6 @@ jobs: - run: | eval "$(rbenv init -)" rbenv install 2.5.7 + rbenv install 2.6.5 + rbenv install 2.7.0 \ No newline at end of file diff --git a/.github/workflows/ubuntu1804.yml b/.github/workflows/ubuntu1804.yml new file mode 100644 index 0000000..c5a00a1 --- /dev/null +++ b/.github/workflows/ubuntu1804.yml @@ -0,0 +1,24 @@ +name: 'Ubuntu 18.04' + +on: + pull_request: + push: + branches: + - master + - 'releases/*' + +jobs: + test: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + + - run: npm ci + - run: npm run build + - run: npm test + - uses: ./ + - run: | + eval "$(rbenv init -)" + rbenv install 2.5.7 + rbenv install 2.6.5 + rbenv install 2.7.0 \ No newline at end of file