Skip to content

Instantly share code, notes, and snippets.

@Nickforall
Created August 29, 2019 13:23
Show Gist options
  • Save Nickforall/e49f5f3c37414e05f9a6c604accf2c3e to your computer and use it in GitHub Desktop.
Save Nickforall/e49f5f3c37414e05f9a6c604accf2c3e to your computer and use it in GitHub Desktop.

Revisions

  1. Nickforall created this gist Aug 29, 2019.
    36 changes: 36 additions & 0 deletions phoenix.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    name: Elixir CI

    on: push

    jobs:
    build:

    runs-on: ubuntu-latest

    container:
    image: elixir:1.9.1-slim
    env:
    MIX_ENV: test

    services:
    postgres:
    image: postgres
    ports:
    - 5432:5432
    env:
    POSTGRES_PASSWORD: postgres
    POSTGRES_USER: postgres
    options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

    steps:
    - uses: actions/checkout@v1
    - name: Install Dependencies
    run: |
    mix local.rebar --force
    mix local.hex --force
    mix deps.get
    - name: Run Tests
    run: |
    mix test
    env:
    DB_HOST: postgres