Skip to content

Tests: Don't hardcode host name #63

Tests: Don't hardcode host name

Tests: Don't hardcode host name #63

Workflow file for this run

name: Continuous integration
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.2', '3.3']
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Lint with RuboCop
run: bundle exec rubocop
- name: Run tests
run: bundle exec dotenv -f ".env.test" rspec
- name: Send test coverage to CodeClimate
uses: paambaati/codeclimate-action@v5.0.0
if: ${{ env.CC_TEST_REPORTER_ID }}
with:
coverageCommand: true