chore: update dependencies (#102) #39
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
# Cancel any in-progress instances of this workflow when this instance is triggered. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
services: | |
db: | |
image: postgres:16 | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Elixir Project | |
uses: ./.github/actions/elixir-setup | |
with: | |
build-flags: --all-warnings --warnings-as-errors | |
- name: Run Migrations | |
run: mix ecto.create; mix ecto.migrate | |
if: always() | |
- name: Run Tests | |
run: mix test | |
if: always() |