-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 877 Bytes
/
rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: rspec
on: push
jobs:
test:
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack
ports:
- 4566:4566
env:
SERVICES: dynamodb,sns,sqs,s3
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Wait for localstack to start
# TODO: Find a better way, like: https://github.com/localstack/localstack/issues/732#issuecomment-799088216
run: sleep 5
- name: rspec
env:
LOCALSTACK_ENDPOINT: http://localhost:4566
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_REGION: ap-southeast-1
LOGS_BUCKET: logs-bucket
CACHE_BUCKET: cache-bucket
TELEGRAM_BOT_API_TOKEN: 123:token
run: |
bundle exec rspec