Skip to content

Merge pull request #1 from treetopdevs/codex/phase1-reactive-bridge #17

Merge pull request #1 from treetopdevs/codex/phase1-reactive-bridge

Merge pull request #1 from treetopdevs/codex/phase1-reactive-bridge #17

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
uses: agentjido/github-actions/.github/workflows/elixir-lint.yml@main
with:
otp_version: "28"
elixir_version: "1.19"
test:
name: Test
uses: agentjido/github-actions/.github/workflows/elixir-test.yml@main
with:
otp_versions: '["27", "28"]'
elixir_versions: '["1.18", "1.19"]'
test_command: mix test
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "28"
elixir-version: "1.19"
- name: Install dependencies
run: mix deps.get
- name: Build docs
run: mix docs
consumer-integration:
name: Consumer Integration (AshPostgres)
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: ash_jido_consumer_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d ash_jido_consumer_test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
MIX_ENV: test
ASH_JIDO_CONSUMER_DB_HOST: 127.0.0.1
ASH_JIDO_CONSUMER_DB_PORT: "5432"
ASH_JIDO_CONSUMER_DB_USER: postgres
ASH_JIDO_CONSUMER_DB_PASS: postgres
ASH_JIDO_CONSUMER_DB_NAME: ash_jido_consumer_test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "28"
elixir-version: "1.19"
- name: Install dependencies
working-directory: ash_jido_consumer
run: mix deps.get
- name: Check formatting
working-directory: ash_jido_consumer
run: mix format --check-formatted
- name: Run consumer integration tests
working-directory: ash_jido_consumer
run: mix test