Skip to content

Feat/cart

Feat/cart #25

Workflow file for this run

name: CI
on: pull_request
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.14]
otp: [24]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- uses: actions/cache@v3
id: mix-cache-tests
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Deps
if: steps.mix-cache-tests.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix ecto.create
- name: ==> INTEGRATING TESTS 🔎
run: mix coveralls.json
services:
pg:
image: postgres:13
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5