TD-222: Update Erlang bits wrt valitydev/thrift 0.14.2.3 (#28)

* Bump to valitydev/damsel@9362c086
* Mention damsel as explicit dependency
This commit is contained in:
Andrew Mayorov 2022-07-14 13:42:07 +03:00 committed by GitHub
parent 063163dc7e
commit d92a22cda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 38 deletions

View File

@ -7,28 +7,11 @@ on:
jobs:
build:
name: Build and verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: valitydev/action-setup-thrift@v1
- uses: erlef/setup-beam@v1
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
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1
with:
otp-version: 24
rebar-version: 3
use-thrift: true
thrift-version: 0.14.2.3
run-eunit: false
run-common-test: false

View File

@ -2,7 +2,7 @@ include "proto/base.thrift"
include "proto/domain.thrift"
namespace java dev.vality.payout.manager
namespace erlang payouts
namespace erlang pmproto.payouts
typedef base.ID PayoutID

View File

@ -1,6 +1,5 @@
%% Common project erlang options.
{erl_opts, [
% mandatory
debug_info,
warnings_as_errors,
@ -26,10 +25,7 @@
]}.
{deps, [
{damsel,
{git, "https://github.com/valitydev/damsel.git",
{branch, "master"}}
}
{damsel, {git, "https://github.com/valitydev/damsel.git", {branch, "master"}}}
]}.
%% XRef checks
@ -57,18 +53,17 @@
{plugins, [
{rebar3_thrift_compiler,
{git, "https://github.com/valitydev/rebar3_thrift_compiler.git", {branch, "master"}}}
{git, "https://github.com/valitydev/rebar3_thrift_compiler.git", {tag, "0.4"}}}
]}.
{provider_hooks, [
{pre, [
{compile, {thrift, compile}},
{clean , {thrift, clean }}
{clean, {thrift, clean}}
]}
]}.
{thrift_compiler_opts, [
{in_dir, "proto"},
{in_files, all},
{gen, "erlang:scoped_typenames"}
{gen, "erlang:app_namespaces"}
]}.

View File

@ -1,4 +1,4 @@
[{<<"damsel">>,
{git,"https://github.com/valitydev/damsel",
{ref,"318a7a6588c4813bd7d5c170af58fa9b6a80e401"}},
{git,"https://github.com/valitydev/damsel.git",
{ref,"9362c08657d1681240d70f923fc04642bbfecc0a"}},
0}].

View File

@ -3,6 +3,7 @@
{vsn, "0.1.0"},
{applications, [
kernel,
stdlib
stdlib,
damsel
]}
]}.