Skip to content

feat: add option for more graceful request failures #208

feat: add option for more graceful request failures

feat: add option for more graceful request failures #208

Workflow file for this run

name: Run test cases
on: [push, pull_request]
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: erlef/setup-beam@v1
with:
otp-version: '24'
- run: rebar3 xref
- run: rebar3 dialyzer
- run: rebar3 eunit
- run: rebar3 ct
linux:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu18.04
- ubuntu16.04
- debian10
- debian9
- debian8
- opensuse
- raspbian10
- raspbian9
- raspbian8
steps:
- uses: actions/checkout@v1
- name: Code analyze
env:
ERL_OTP: erl24.3.4.2-1
SYSTEM: ${{ matrix.os }}
run: |
version=$(echo ${{ github.ref }} | sed -r "s .*/.*/(.*) \1 g")
sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
sudo docker run --rm -i --name $SYSTEM -v $(pwd):/repos emqx/build-env:$ERL_OTP-$SYSTEM sh -c "cd /repos && make xref && make dialyzer"
- name: Run tests
env:
ERL_OTP: erl24.3.4.2-1
SYSTEM: ${{ matrix.os }}
run: |
version=$(echo ${{ github.ref }} | sed -r "s .*/.*/(.*) \1 g")
sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
sudo docker run --rm -i --name $SYSTEM -v $(pwd):/repos emqx/build-env:$ERL_OTP-$SYSTEM sh -c "cd /repos && make eunit && make ct"
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Code analyze
env:
ERL_OTP: erl24.3.4.2-1
run: docker run --rm -i --name alpine -v $(pwd):/repos emqx/build-env:$ERL_OTP-alpine3.10-amd64 sh -c "cd /repos && make xref && make dialyzer"
- name: Run tests
env:
ERL_OTP: erl24.3.4.2-1
run: docker run --rm -i --name alpine -v $(pwd):/repos emqx/build-env:$ERL_OTP-alpine3.10-amd64 sh -c "cd /repos && make eunit && make ct"