Skip to content

wip

wip #75

Workflow file for this run

name: RSpec
on:
- push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.2']
services:
redis:
image: redis:alpine
container_name: eventq_redis

Check failure on line 16 in .github/workflows/rspec.yml

View workflow run for this annotation

GitHub Actions / RSpec

Invalid workflow file

The workflow is not valid. .github/workflows/rspec.yml (Line: 16, Col: 9): Unexpected value 'container_name' .github/workflows/rspec.yml (Line: 21, Col: 9): Unexpected value 'container_name'
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:3.6.5
container_name: rabbitmq
localstack:
# changes to multi region support after this version break tests
image: localstack/localstack:0.12.16
container_name: localstack
environment:
- SERVICES=sqs,sns
- HOSTNAME=localstack
- HOSTNAME_EXTERNAL=localstack
ports:
- "8085:8080"
- "4566:4566"
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Bundle
run: bundle install
- name: Run tests
run: "bundle exec rspec"
env:
AWS_ACCESS_KEY_ID: mock_id
AWS_SECRET_ACCESS_KEY: mock_password
AWS_REGION: eu-west-1
AWS_SQS_ENDPOINT: http://localstack:4566
AWS_SNS_ENDPOINT: http://localstack:4566
- name: Code Coverage
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
prefix: '/src'
coverageLocations: |
${{github.workspace}}/coverage/.resultset.json:simplecov