Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ name: Elixir CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

services:
db:
image: postgres:11
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: [self-hosted, ecs, ephemeral, org]
env:
MIX_ENV: test
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: '22.2'
elixir-version: '1.9.4'
- run: mix deps.get
- run: MIX_ENV=test mix ecto.create
- run: MIX_ENV=test mix ecto.migrate
- run: mix test
- uses: actions/checkout@v4

- name: Verify preinstalled Elixir toolchain
run: |
elixir --version
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell

- name: Fetch dependencies
run: mix deps.get

- name: Create DB
run: mix ecto.create

- name: Run migrations
run: mix ecto.migrate

- name: Run tests
run: mix test
Loading