Update some pages to reflect Jumu website renewal #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
env: | |
MIX_ENV: test | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres:12 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: jumubase_test | |
ports: ["5432:5432"] | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 | |
with: | |
otp-version: "24.0.5" | |
elixir-version: "1.12.2" | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
run: | | |
mix deps.get | |
npm install --prefix assets | |
- name: Check formatting | |
run: mix format --check-formatted | |
- name: Run tests | |
run: mix test |