forked from loafle/openapi-generator-original
Setup Github works for Erlang projects (#14788)
* add github work for erlang projects * trigger build * use setup-bean instead * add rebar3 version * update otp version * fix otp version * fix otp version * use 22.2 * fix * fix * fix ubuntu version * use 22.2 * comment out erlang server test
This commit is contained in:
parent
cab9872d6d
commit
b527f3b816
35
.github/workflows/samples-erlang.yaml
vendored
Normal file
35
.github/workflows/samples-erlang.yaml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Samples Erlang
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# comment out due to errors
|
||||||
|
# ===> Compiling src/openapi_pet_handler.erl failed
|
||||||
|
# src/openapi_pet_handler.erl:278: function is_authorized/2 already defined
|
||||||
|
#- samples/server/petstore/erlang-server/**
|
||||||
|
- samples/client/petstore/erlang-client/**
|
||||||
|
- samples/client/petstore/erlang-proper/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- samples/server/petstore/erlang-server/**
|
||||||
|
- samples/client/petstore/erlang-client/**
|
||||||
|
- samples/client/petstore/erlang-proper/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Erlang projects
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
#- samples/server/petstore/erlang-server/
|
||||||
|
- samples/client/petstore/erlang-client/
|
||||||
|
- samples/client/petstore/erlang-proper/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: erlef/setup-beam@v1
|
||||||
|
with:
|
||||||
|
otp-version: '22.2'
|
||||||
|
rebar3-version: '3.14.3'
|
||||||
|
- run: rebar3 compile
|
||||||
|
working-directory: ${{ matrix.sample }}
|
@ -44,3 +44,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user