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

Run PG service as part of test CI job #2

Merged
merged 5 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,33 @@ jobs:
image: crystallang/crystal:latest
steps:
- uses: actions/checkout@v3
# Workaround https://github.com/amberframework/micrate/issues/87
- name: Install Lib Dependencies
run: apt update && apt upgrade -y && apt install -y libsqlite3-dev
- name: Install Dependencies
run: shards install
- name: Ameba
run: ./bin/ameba
test:
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: blog_test_user
POSTGRES_PASSWORD: 'mYAw3s0meB!og'
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 2s
--health-timeout 10s
--health-retries 5
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# - windows-latest
crystal:
- latest
- nightly
Expand Down