-
Notifications
You must be signed in to change notification settings - Fork 50
53 lines (48 loc) · 1.45 KB
/
gen_erlang.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Generate aws-erlang
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.erlang }}
strategy:
fail-fast: false
matrix:
elixir: ["1.13.4"]
erlang: ["25.0.4"]
rebar3: ['3.20.0']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: "${{ matrix.erlang }}"
elixir-version: "${{ matrix.elixir }}"
rebar3-version: "${{ matrix.rebar3 }}"
- name: Install Dependencies
run: |
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get -y --no-install-recommends install build-essential cmake
mix deps.get
- name: Checkout aws/aws-sdk-go
uses: actions/checkout@v2
with:
repository: aws/aws-sdk-go
path: aws/aws-sdk-go/
- name: Checkout aws-erlang
uses: actions/checkout@v2
with:
repository: aws-beam/aws-erlang
path: aws-beam/aws-erlang
- name: Generate aws-erlang
env:
SPEC_PATH: aws/aws-sdk-go/models/apis
TEMPLATE_PATH: priv
ERLANG_OUTPUT_PATH: aws-beam/aws-erlang/src
run: mix run generate.exs erlang $SPEC_PATH $TEMPLATE_PATH $ERLANG_OUTPUT_PATH
- name: Run Erlang tests
run: rebar3 eunit
working-directory: aws-beam/aws-erlang