Skip to content

Commit

Permalink
Use a clever method for finding the current ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
waltz committed Feb 28, 2020
1 parent 8724872 commit b1d5d43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
ports: ['5432:5432']

steps:
- name: Fetch Ruby Version
run: echo "::set-output name=RUBY_VERSION::$(cat .ruby-version)"
id: rbenv

- name: Get Code
uses: actions/checkout@v2

Expand All @@ -23,13 +27,16 @@ jobs:
- name: Install Ruby
uses: actions/setup-ruby/@v1
with:
ruby-version: '2.6.3'
ruby-version: "${{ steps.rbenv.outputs.RUBY_VERSION }}"

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Install Node Packages
run: yarn

- name: Build and Test with Rake
env:
PGHOST: 127.0.0.1
Expand Down

0 comments on commit b1d5d43

Please sign in to comment.