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

View File

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

View File

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

View File

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

View File

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