Update lz4_flex crate to v0.11 (#11) #51
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
NIMBLELZ4_FORCE_BUILD: "true" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MIX_ENV: test | |
jobs: | |
test: | |
name: Test (Elixir ${{ matrix.elixir }} | Erlang/OTP ${{ matrix.otp }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- otp: "27.0" | |
elixir: "1.17" | |
lint: true | |
os: ubuntu-latest | |
- otp: "26.0" | |
elixir: "1.15" | |
os: ubuntu-22.04 | |
- otp: "23.0" | |
elixir: "1.13" | |
os: ubuntu-20.04 | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Install OTP and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Cache built dependencies | |
id: cache-deps | |
uses: actions/cache@v4 | |
with: | |
path: | | |
deps | |
_build | |
key: | | |
${{ runner.os }}-mix-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}- | |
- name: Install dependencies | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
run: mix deps.get --only test | |
- name: Check formatting | |
run: mix format --check-formatted | |
if: ${{ matrix.lint }} | |
- name: Check no unused dependencies and up-to-date mix.lock | |
run: mix do deps.get --check-lock + deps.unlock --check-unused | |
if: ${{ matrix.lint == 'true' && steps.cache-deps.outputs.cache-hit != 'true' }} | |
- name: Compile with --warnings-as-errors | |
run: mix compile --warnings-as-errors | |
if: ${{ matrix.lint }} | |
- name: Run tests | |
run: mix test --trace |