Skip to content

Move code_indented test suite to 'just codegen' #22

Move code_indented test suite to 'just codegen'

Move code_indented test suite to 'just codegen' #22

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CC: clang
CXX: clang++
MIX_ENV: test
WARNINGS_AS_ERRORS: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.18.4
otp: 28.0.2
rebar3: 3.25.1
lint: true
- elixir: 1.18.4
otp: 27.3
rebar3: 3.25.1
steps:
- uses: actions/checkout@v5
- name: Setup Beam
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ matrix.rebar3 }}
# - name: (Erlang) Check Formatting
# if: ${{ matrix.lint }}
# run: |
# clang-format --version
# make lint-format
# - name: (Erlang) eqWAlizer
# if: ${{ matrix.lint }}
# run: make lint-eqwalizer
# - name: (Erlang) Dialyzer
# if: ${{ matrix.lint }}
# run: make lint-dialyzer
# - name: (Erlang) Xref
# if: ${{ matrix.lint }}
# run: make lint-xref
- name: (Erlang) Tests
run: |
rebar3 ct
# - name: (Elixir) Retrieve Mix Dependencies Cache
# uses: actions/cache@v4
# id: mix-cache
# with:
# path: deps
# key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
# - name: (Elixir) Install Mix Dependencies
# if: steps.mix-cache.outputs.cache-hit != 'true'
# run: |
# mix local.rebar --force
# mix local.hex --force
# mix deps.get
# - name: (Elixir) Check Formatting
# if: ${{ matrix.lint }}
# run: mix format --check-formatted
# - name: (Elixir) Tests
# run: mix test --trace
- name: Logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: ct-logs-${{ matrix.otp }}-${{ matrix.elixir }}
path: _build/test/logs/