Skip to content

Merge pull request #121 from gregwinn/feature/linter #79

Merge pull request #121 from gregwinn/feature/linter

Merge pull request #121 from gregwinn/feature/linter #79

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['27', '28']
steps:
- uses: actions/checkout@v4
- name: Set up Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: '3.24'
- name: Restore rebar3 cache
uses: actions/cache@v4
with:
path: |
_build
~/.cache/rebar3
key: ${{ runner.os }}-rebar3-${{ matrix.otp }}-${{ hashFiles('rebar.lock', 'rebar.config', 'apps/**/*.yrl', 'apps/**/*.xrl') }}
restore-keys: |
${{ runner.os }}-rebar3-${{ matrix.otp }}-
- name: Fetch dependencies
run: rebar3 get-deps
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 eunit
- name: Build escript
run: rebar3 escriptize
- name: Verify CLI
run: ./_build/default/bin/winn help