Skip to content

Commit

Permalink
add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ripple0328 committed Jul 8, 2023
1 parent 55ac74b commit 110f23c
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:13-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: outdoor_dev
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Setup Elixir
Expand All @@ -15,10 +29,17 @@ jobs:
otp-version: 26.0.2
- name: Install Dependencies
run: mix deps.get
- name: Start DB
run: docker compose up &
- name: Run Tests
run: mix test
- name: Check Format
run: mix format --check-formatted
- name: Run tests
run: mix coveralls.json
env:
MIX_ENV: test
- name: Upload to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
deploy:
name: Deploy app
Expand Down

0 comments on commit 110f23c

Please sign in to comment.