mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-23 02:24:24 +00:00
Improve dev tooling (#30)
* added ex_check and got it passing * Set up ex_check to run in test env * Added static code analysis * Updated actions file * Updated dockerfile
This commit is contained in:
parent
01042ebd1b
commit
e3f1b409b9
8 changed files with 73 additions and 19 deletions
17
.github/workflows/lint_and_test.yml
vendored
17
.github/workflows/lint_and_test.yml
vendored
|
|
@ -21,10 +21,6 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Create and populate ENV file
|
||||
run: |
|
||||
echo MIX_ENV=test >> .env
|
||||
|
||||
- name: Pull prebuilt images
|
||||
run: docker compose pull
|
||||
|
||||
|
|
@ -55,14 +51,5 @@ jobs:
|
|||
docker compose exec -T phx mix ecto.create
|
||||
docker compose exec -T phx mix ecto.migrate
|
||||
|
||||
- name: Check JS formatting
|
||||
run: docker compose exec -T phx yarn run prettier . --check
|
||||
|
||||
- name: Check Elixir formatting
|
||||
run: docker compose exec -T phx mix format --check-formatted
|
||||
|
||||
- name: Check Credo
|
||||
run: docker compose exec -T phx mix credo
|
||||
|
||||
- name: Run Elixir tests
|
||||
run: docker compose exec -T phx mix test
|
||||
- name: Run code checks
|
||||
run: docker compose exec -T phx mix check --no-fix --no-retry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue