mirror of
https://github.com/valitydev/java-workflow.git
synced 2024-11-06 09:35:18 +00:00
34 lines
716 B
YAML
34 lines
716 B
YAML
name: Erlang build
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and verify
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: valitydev/action-setup-thrift@v0.0.5
|
|
with:
|
|
thrift-version: '0.14.2.1'
|
|
|
|
- uses: erlef/setup-beam@v1.9
|
|
id: beam
|
|
with:
|
|
otp-version: '24'
|
|
rebar3-version: '3.18'
|
|
|
|
- name: Restore PLT cache
|
|
uses: actions/cache@v2
|
|
id: plt-cache
|
|
with:
|
|
key: |
|
|
${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-plt
|
|
path: |
|
|
_build/default/rebar3_*_plt
|
|
|
|
- run: rebar3 compile
|
|
- run: rebar3 xref
|
|
- run: rebar3 dialyzer |