Skip to content

Bump wiggle from 26.0.1 to 28.0.0 in /native/wasmex #387

Bump wiggle from 26.0.1 to 28.0.0 in /native/wasmex

Bump wiggle from 26.0.1 to 28.0.0 in /native/wasmex #387

Workflow file for this run

name: Elixir CI
on:
pull_request:
push:
branches:
- main
env:
ELIXIR_VERSION: 1.17.3
OTP_VERSION: 27.1
MIX_ENV: test
WASMEX_BUILD: true
jobs:
deps:
runs-on: ubuntu-latest
outputs:
deps-cache-key: ${{ steps.get-cache-key.outputs.key }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- id: get-cache-key
run: echo "key=mix-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ hashFiles('**/mix.lock') }}" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: cache-deps
with:
path: |
deps
_build
key: ${{ steps.get-cache-key.outputs.key }}
- run: mix do deps.get, deps.compile
if: steps.cache-deps.outputs.cache-hit != 'true'
credo:
needs: deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- uses: actions/cache@v4
id: cache-deps
with:
path: |
deps
_build
key: ${{ needs.deps.outputs.deps-cache-key }}
- run: mix credo
format:
needs: deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- run: mix format --check-formatted
docs:
needs: deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- uses: actions/cache@v4
id: cache-deps
with:
path: |
deps
_build
key: ${{ needs.deps.outputs.deps-cache-key }}
- run: mix docs
test:
needs: deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- uses: actions/cache@v4
id: cache-deps
with:
path: |
deps
_build
key: ${{ needs.deps.outputs.deps-cache-key }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Add targets
run: |
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasip1
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: elixir-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: mix test