Skip to content

Commit

Permalink
chore: add postgres to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaAK committed Sep 14, 2024
1 parent e850292 commit 3ef6076
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,26 @@ on: push
jobs:
coveralls:
runs-on: ubuntu-latest

services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: postgres

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
Expand All @@ -15,14 +33,15 @@ jobs:
key: ${{ runner.os }}-mix-coveralls-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-coveralls-
- uses: erlef/setup-beam@v1
with:
otp-version: 25.1.2
elixir-version: 1.14.2

- run: mix deps.get

- run: MIX_ENV=test mix coveralls.json
- run: CI=true MIX_ENV=test mix coveralls.json

- name: Upload to codecov.io
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/credo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
otp-version: 25.1.2
elixir-version: 1.14.2
- run: mix deps.get
- run: mix credo
- run: CI=true MIX_ENV=test mix credo

0 comments on commit 3ef6076

Please sign in to comment.