From 5f0ce123e3efe33bdb678fc83c8380c26446771c Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Fri, 17 Jan 2020 12:13:28 +0000 Subject: [PATCH] Use .ruby-version to choose Ruby version installed by GitHub Actions There a GitHub issue open for the setup-ruby action in which they are considering making this happen automatically, but somebody gave this way of implementing it for now: https://github.com/actions/setup-ruby/issues/31#issuecomment-561144368 --- .github/workflows/.continuous-integration.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.continuous-integration.yml b/.github/workflows/.continuous-integration.yml index 8f5b3c4f8..463fc918f 100644 --- a/.github/workflows/.continuous-integration.yml +++ b/.github/workflows/.continuous-integration.yml @@ -7,9 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - run: echo "::set-output name=RUBY_VERSION::$(cat .ruby-version)" + id: rbenv - uses: actions/setup-ruby@v1 with: - ruby-version: '2.6.3' + ruby-version: "${{ steps.rbenv.outputs.RUBY_VERSION }}" - name: Set up Docker run: docker network create test - name: Set up Postgres