Skip to content

Bump ecto from 3.11.0 to 3.11.1 #619

Bump ecto from 3.11.0 to 3.11.1

Bump ecto from 3.11.0 to 3.11.1 #619

Workflow file for this run

name: CI
env:
ELIXIR_VERSION: "1.14"
OTP_VERSION: "25.3"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ["22.3", "23.3", "24.3", "25.3"]
elixir: ["1.11", "1.12", "1.13", "1.14"]
exclude:
- otp: "25.3"
elixir: "1.11"
- otp: "25.3"
elixir: "1.12"
- otp: "25.3"
elixir: "1.13"
- otp: "22.3"
elixir: "1.14"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Restore dependencies and build cache
uses: actions/cache@v3
with:
path: |
_build
deps
key: ${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix coveralls.github
matrix-results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Tests
needs:
- tests
steps:
- run: |
result="${{ needs.tests.result }}"
if [[ $result == "success" ]]; then
exit 0
else
exit 1
fi
example-tests:
runs-on: ubuntu-20.04
name: Example application tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
working-directory: example
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Restore dependencies and build cache
uses: actions/cache@v3
with:
path: |
_build
deps
key: example-${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: example-${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test
code-quality:
runs-on: ubuntu-20.04
name: Code Quality
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Restore dependencies and build cache
uses: actions/cache@v3
with:
path: |
_build
deps
key: ${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ steps.beam.outputs.otp-version }}-elixir-${{ steps.beam.outputs.elixir-version }}-
- name: Restore PLT cache
uses: actions/cache@v3
id: plt_cache
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-plt-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-plt-
path: |
.plts
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Compile
run: mix compile --warnings-as-errors
- name: Run Formatter
run: mix format --check-formatted
- name: Run Linter
run: mix credo
- name: Run Hex Audit
run: mix hex.audit
- name: Generate docs
run: mix docs
- name: Run Dialyzer
run: mix dialyzer