Generate types and type specs for all generated functions in aws-elixir and aws-erlang #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate aws-elixir | |
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"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "${{ matrix.erlang }}" | |
elixir-version: "${{ matrix.elixir }}" | |
- 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-v2 | |
uses: actions/checkout@v2 | |
with: | |
repository: aws/aws-sdk-go-v2 | |
path: aws/aws-sdk-go-v2/ | |
- name: Checkout aws-elixir | |
uses: actions/checkout@v2 | |
with: | |
repository: aws-beam/aws-elixir | |
path: aws-beam/aws-elixir | |
- name: Generate aws-elixir | |
env: | |
SPEC_PATH: aws/aws-sdk-go-v2/codegen/sdk-codegen/aws-models | |
TEMPLATE_PATH: priv | |
ELIXIR_OUTPUT_PATH: aws-beam/aws-elixir/lib/aws/generated | |
run: | | |
mkdir -p $ELIXIR_OUTPUT_PATH | |
mix run generate.exs elixir $SPEC_PATH $TEMPLATE_PATH $ELIXIR_OUTPUT_PATH | |
- name: Test aws-elixir | |
run: | | |
mix deps.get | |
mix test | |
working-directory: aws-beam/aws-elixir |