Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (40 sloc) 1021 Bytes
name: Continuous Integration
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- 'master'
jobs:
test:
runs-on: ubuntu-latest
name: Elixir
services:
db:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
image: postgres:11
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v1.0.0
- uses: actions/setup-elixir@v1.2.0
with:
otp-version: 21.1
elixir-version: 1.7.4
- name: Install Dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Check style
run: mix credo --format flycheck
- name: Compile project
run: mix compile --warnings-as-errors
- name: Run Tests
run: mix test
You can’t perform that action at this time.