Skip to content

Commit

Permalink
chore: Add extra checks in the CI pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz committed Sep 21, 2023
1 parent 8667618 commit a876a44
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .check.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# {:my_tool, ["my_tool", "arg with spaces"]}
{:credo, "mix credo --strict"},
{:spark_formatter, "mix spark.formatter --check"},
{:spark_cheat_sheets, "mix spark.cheat_sheets --check"}
{:spark_cheat_sheets, "mix spark.cheat_sheets --check"},
{:generate_migrations, "mix ash_postgres.generate_migrations --check"}
]
]
32 changes: 29 additions & 3 deletions .github/workflows/elixir_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
with:
mix-env: test

conventional_commit:
conventional-commit:
name: mix git_ops.check_message
runs-on: ubuntu-latest
needs: build-test
Expand All @@ -116,6 +116,7 @@ jobs:
- uses: team-alembic/staple-actions/actions/conventional-commit@main
with:
mix-env: test

sobelow:
name: mix sobelow --config
runs-on: ubuntu-latest
Expand All @@ -126,7 +127,7 @@ jobs:
with:
mix-env: test

unused_deps:
unused-deps:
name: mix deps.unlock --check-unused
runs-on: ubuntu-latest
needs: build-test
Expand All @@ -136,6 +137,28 @@ jobs:
with:
mix-env: test

spark-cheat-sheets:
name: mix spark.cheat_sheets --check
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v3
- uses: team-alembic/staple-actions/actions/mix-task@main
with:
mix-env: test
task: spark.cheat_sheets --check

generate-migrations:
name: mix ash_postgres.generate_migrations --check
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v3
- uses: team-alembic/staple-actions/actions/mix-task@main
with:
mix-env: test
task: ash_postgres.generate_migrations --check

build-dev:
name: MIX_ENV=dev mix.compile
runs-on: ubuntu-latest
Expand All @@ -148,7 +171,10 @@ jobs:
- test
- dialyzer
- sobelow
- unused_deps
- unused-deps
- spark-cheat-sheets
- generate-migrations
- conventional-commit
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit a876a44

Please sign in to comment.