Skip to content

Add Phase 1 reactive Ash->Jido event bridge #12

Add Phase 1 reactive Ash->Jido event bridge

Add Phase 1 reactive Ash->Jido event bridge #12

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
test:
name: Test
uses: agentjido/github-actions/.github/workflows/elixir-test.yml@main
with:
otp_versions: '["26", "27"]'
elixir_versions: '["1.17", "1.18"]'
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: "27"
elixir-version: "1.18.4"
- 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: "27"
elixir-version: "1.18.4"
- 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