Skip to content

Commit

Permalink
Move seed verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Jan 29, 2023
1 parent 9d66d6f commit eba0fa2
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ jobs:
otp: 25.1.0
elixir: 1.14.0

services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v3

Expand All @@ -30,8 +41,14 @@ jobs:
- name: Install dependencies
run: mix do deps.get, deps.compile

- run: mix compile --warnings-as-errors
- run: mix format --check-formatted
- name: Check compilation warnings
run: mix compile --warnings-as-errors

- name: Check formatting
run: mix format --check-formatted

- name: Verify seeds
run: mix run priv/repo/seeds.exs

test-hexpm:
name: Test Hexpm
Expand Down Expand Up @@ -77,9 +94,6 @@ jobs:
- name: Run tests
run: mix test

- name: Verify seeds
run: MIX_ENV=test mix run priv/repo/seeds.exs

test-hex:
name: Test Hex
runs-on: ubuntu-20.04
Expand Down

0 comments on commit eba0fa2

Please sign in to comment.