Skip to content

release: v0.1.20

release: v0.1.20 #106

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
ELIXIR_VERSION: "1.19"
OTP_VERSION: "28.3.1"
jobs:
ci:
name: Lint, Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v3
- name: Cache Elixir deps
uses: actions/cache@v4
with:
path: |
opal/deps
opal/_build
key: mix-${{ runner.os }}-${{ hashFiles('opal/mix.lock') }}
restore-keys: mix-${{ runner.os }}-
- name: Cache Dialyzer PLTs
uses: actions/cache@v4
with:
path: opal/_build/dev/dialyxir_*.plt*
key: plt-${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('opal/mix.lock') }}
restore-keys: plt-${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-
- name: Install deps
run: |
cd opal && mix deps.get
cd ../cli && pnpm install --frozen-lockfile
- name: Codegen check
run: cd opal && mix run ../scripts/codegen_ts.exs --check
- name: Lint
run: mise run lint
- name: Build
run: mise run build
- name: Test
run: mise run test