Bump ecto_sql from 3.10.1 to 3.11.0 #49
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: | |
- "*" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
# Elixir 1.13 | |
- elixir-version: "1.13.0" | |
otp-version: "24.3.1" | |
# Elixir 1.14 | |
- elixir-version: "1.14.0" | |
otp-version: "24.3.1" | |
- elixir-version: "1.14.0" | |
otp-version: "25.3.1" | |
# Elixir 1.15 | |
- elixir-version: "1.15.0" | |
otp-version: "25.3.1" | |
- elixir-version: "1.15.0" | |
otp-version: "26.0.1" | |
name: Build and test | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
# Remove if you don't need a database | |
services: | |
db: | |
image: "postgres:15.3-alpine" | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: ecto_resource_test | |
ports: ["5432:5432"] | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Elixir Project | |
uses: ./.github/actions/elixir-setup | |
with: | |
elixir-version: ${{ matrix.elixir-version }} | |
otp-version: ${{ matrix.otp-version }} | |
build-flags: --all-warnings --warnings-as-errors | |
build-app: true | |
- name: Run Migrations | |
run: mix ecto.migrate | |
# Run tests & migrations even if compilation failed (probably due to warnings) | |
# so that we give devs as much feedback as possible & save some time. | |
if: always() | |
- name: Run Tests | |
run: mix test --warnings-as-errors | |
if: always() |