Skip to content

Commit

Permalink
build: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
moissela committed Apr 3, 2024
1 parent 94f58e1 commit 73de55e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ash-uuid-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false

build-dev:
name: MIX_ENV=dev mix.compile
Expand All @@ -51,6 +52,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: dev
compile-assets: false

outdated:
name: mix hex.outdated
Expand All @@ -64,6 +66,7 @@ jobs:
elixir-version: 1.16
mix-env: test
task: hex.outdated
compile-assets: false

unused:
name: mix deps.unlock --check-unused
Expand All @@ -77,6 +80,7 @@ jobs:
elixir-version: 1.16
mix-env: test
task: deps.unlock --check-unused
compile-assets: false

audit:
name: mix hex.audit
Expand All @@ -100,16 +104,18 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false

docs:
name: mix docs
runs-on: ubuntu-latest
needs: build-dev
steps:
- uses: actions/checkout@v3
- uses: team-alembic/staple-actions/actions/mix-docs@main
- uses: zoonect-oss/github-ops/actions/mix-docs@main
with:
mix-env: dev
compile-assets: false

dialyzer:
name: mix dialyzer
Expand All @@ -122,6 +128,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: dev
compile-assets: false

credo:
name: mix credo --strict
Expand All @@ -135,6 +142,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: dev
compile-assets: false

sobelow:
name: mix sobelow
Expand All @@ -149,6 +157,7 @@ jobs:
elixir-version: 1.16
mix-env: dev
task: sobelow
compile-assets: false

test:
name: mix test
Expand All @@ -174,13 +183,15 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false
task: ash_postgres.generate_migrations --check
- uses: zoonect-oss/github-ops/actions/mix-task@main
if: ${{inputs.postgres}}
with:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false
task: ash_postgres.create
env:
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/ash_uuid_test"
Expand All @@ -190,6 +201,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false
task: ash_postgres.migrate
env:
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/ash_uuid_test"
Expand All @@ -198,6 +210,7 @@ jobs:
erlang-version: 26.2
elixir-version: 1.16
mix-env: test
compile-assets: false
env:
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/ash_uuid_test"

Expand All @@ -219,7 +232,8 @@ jobs:
name: Release
steps:
- uses: actions/checkout@v3
- uses: team-alembic/staple-actions/actions/mix-hex-publish@main
- uses: zoonect-oss/github-ops/actions/mix-hex-publish@main
with:
mix-env: dev
compile-assets: false
hex-api-key: ${{secrets.HEX_API_KEY}}

0 comments on commit 73de55e

Please sign in to comment.