Merge pull request #716 from mozilla/search-created-rooms #662
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: lint-and-test | |
on: [push, workflow_dispatch] | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-20.04 | |
services: | |
postgres: | |
image: postgres:10 | |
env: | |
POSTGRES_USER: admin | |
POSTGRES_PASSWORD: admin | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '23.3' | |
elixir-version: '1.14' | |
- uses: actions/[email protected] | |
with: | |
path: | | |
deps | |
_build | |
key: mix-${{ hashFiles('mix.lock') }} | |
- run: mix local.hex --force | |
- run: mix local.rebar --force | |
- run: mix deps.get | |
- run: mix compile --warnings-as-errors | |
- run: mix test | |
- run: mix format --check-formatted '{lib,priv,test,config}/**/*.{ex,exs}' |