Skip to content

Convert the login page to use controllers (#389) #1014

Convert the login page to use controllers (#389)

Convert the login page to use controllers (#389) #1014

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
services:
db:
image: postgis/postgis
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: '1.14.2'
otp-version: '25'
- name: Cache Elixir deps
id: elixir-deps-cache
uses: actions/[email protected]
with:
path: |
**/deps
key: |
${{ runner.os }}-elixir-deps-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-elixir-deps-
- name: Cache Elixir build
id: elixir-build-cache
uses: actions/[email protected]
with:
path: |
**/_build
key: |
${{ runner.os }}-elixir-build-${{ hashFiles('**/mix.lock') }}-${{ hashFiles( '**/lib/**/*.{ex,eex}', '**/config/*.exs', '**/mix.exs' ) }}
restore-keys: |
${{ runner.os }}-elixir-build-${{ hashFiles('**/mix.lock') }}-
${{ runner.os }}-elixir-build-
- name: Install dependencies
run: mix deps.get
- name: Compile
run: mix compile
- name: Install JS dependencies
run: npm install --prefix=assets
- name: Compile assets
run: mix assets.deploy
- name: Run tests
run: mix test