mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 01:35:19 +00:00
Add Erlang CI workflow (#5)
Ensure workflow runs on master, so that PLT cache is available for future PRs.
This commit is contained in:
parent
7a33c6d133
commit
270043770c
37
.github/workflows/erlang-pr.yml
vendored
Normal file
37
.github/workflows/erlang-pr.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Erlang
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['*']
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and verify
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: valitydev/action-setup-thrift@b457b89c7e1e960ea354f510bce69a725d16c556
|
||||
with:
|
||||
thrift-version: '0.14.2'
|
||||
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user