Allow schema to be used for values list types #3345
Workflow file for this run
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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
permissions: | |
contents: read | |
jobs: | |
unit-test: | |
name: unit test | |
runs-on: ubuntu-20.04 | |
env: | |
FORCE_COLOR: 1 | |
MIX_ENV: test | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- elixir: "1.17.3" | |
otp: "27.1" | |
lint: lint | |
- elixir: "1.17.3" | |
otp: "25.0.4" | |
- elixir: "1.14.5" | |
otp: "23.3.4.20" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Elixir and Erlang | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Restore deps and _build cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Compile deps | |
run: mix deps.compile | |
- name: Check unused dependencies | |
run: mix deps.unlock --check-unused | |
if: ${{ matrix.lint }} | |
- name: Compile lint | |
run: mix compile --warning-as-errors | |
if: ${{ matrix.lint }} | |
- name: Run tests | |
run: mix test | |
integration-test: | |
name: integration test | |
runs-on: ubuntu-20.04 | |
env: | |
FORCE_COLOR: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
elixirbase: | |
- "1.17.3-erlang-27.1-alpine-3.17.9" | |
- "1.17.3-erlang-25.0.4-alpine-3.17.9" | |
- "1.14.5-erlang-23.3.4.20-alpine-3.16.9" | |
steps: | |
- uses: earthly/actions-setup@v1 | |
- uses: actions/checkout@v3 | |
- name: ecto integration-test under ${{matrix.elixirbase}} | |
run: earthly -P --ci --build-arg ELIXIR_BASE=${{matrix.elixirbase}} +integration-test |