Skip to content

Upgrade sqlite to v3.47.0 (#307) #597

Upgrade sqlite to v3.47.0 (#307)

Upgrade sqlite to v3.47.0 (#307) #597

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
lint:
runs-on: ${{ matrix.os }}
env:
MIX_ENV: dev
name: Lint
strategy:
matrix:
os: ["ubuntu-latest"]
elixir: ["1.17"]
otp: ["27"]
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v3
with:
path: deps
key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_
- run: mix deps.get
- run: mix deps.compile
- run: mix format --check-formatted
- run: clang-format --dry-run --Werror c_src/sqlite3_nif.c
- run: mix deps.unlock --check-unused
- run: mix credo --all
- run: mix test_sqlite_version
test:
runs-on: ${{ matrix.os }}
env:
MIX_ENV: test
DEBUG: "1"
name: Test Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }}, OS ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
elixir: ["1.17", "1.16", "1.15"]
otp: ["27", "26", "25"]
exclude:
- elixir: "1.15"
otp: "27"
- elixir: "1.16"
otp: "27"
include:
- os: "windows-2019"
otp: "27"
elixir: "1.17"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-2019'
with:
arch: x64
- uses: actions/cache@v3
with:
path: deps
key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_
- run: mix deps.get --only test
- run: mix deps.compile
- run: mix compile
- run: mix test