Skip to content

Merge pull request #143 from RichDom2185/restore-min-to-ms #65

Merge pull request #143 from RichDom2185/restore-min-to-ms

Merge pull request #143 from RichDom2185/restore-min-to-ms #65

Workflow file for this run

name: Continuous Integration
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- 'master'
jobs:
Test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: guardian_db_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.14"
otp-version: "24.3"
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test
Linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.14"
otp-version: "24.3"
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Formatter
run: mix format --check-formatted
- name: Run Credo
run: mix credo