Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set version env var for tests #479

Merged
merged 16 commits into from
Feb 4, 2022
14 changes: 13 additions & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
ruby: [ 2.4, 2.5, 2.6, 2.7, 3.0, jruby-9.2 ]
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', jruby-9.2 ]
env:
version: ${{ format('ruby:{0}', matrix.ruby) }}
steps:
- name: Revise env version if necessary
run: echo "version=jruby:9.2" >> $GITHUB_ENV
if: ${{ matrix.ruby == 'jruby-9.2' }}

- name: Checkout sendgrid-ruby
uses: actions/checkout@v2
with:
Expand All @@ -30,6 +36,12 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTH_TOKEN }}

- run: make install

- name: Set up linter
Expand Down