| 1 |
|
| 2 |
|
| 3 |
name: Check Cowboy |
| 4 |
|
| 5 |
on: |
| 6 |
push: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
pull_request: |
| 10 |
schedule: |
| 11 |
|
| 12 |
- cron: 0 2 * * 1 |
| 13 |
|
| 14 |
concurrency: |
| 15 |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 16 |
cancel-in-progress: true |
| 17 |
|
| 18 |
jobs: |
| 19 |
check: |
| 20 |
name: Check |
| 21 |
if: ${{ !cancelled() }} |
| 22 |
uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master |
| 23 |
|
| 24 |
dialyzer-no-quicer: |
| 25 |
name: Check / Dialyzer (without COWBOY_QUICER) |
| 26 |
runs-on: ubuntu-latest |
| 27 |
steps: |
| 28 |
|
| 29 |
- name: Checkout repository |
| 30 |
uses: actions/checkout@v4 |
| 31 |
|
| 32 |
- name: Install latest Erlang/OTP |
| 33 |
uses: erlef/setup-beam@v1 |
| 34 |
with: |
| 35 |
otp-version: '> 0' |
| 36 |
|
| 37 |
- name: Run Dialyzer (without COWBOY_QUICER) |
| 38 |
run: make dialyze COWBOY_QUICER=0 |
| 39 |
|
| 40 |
examples: |
| 41 |
name: Check examples |
| 42 |
runs-on: ubuntu-latest |
| 43 |
steps: |
| 44 |
|
| 45 |
- name: Checkout repository |
| 46 |
uses: actions/checkout@v4 |
| 47 |
|
| 48 |
- name: Install latest Erlang/OTP |
| 49 |
uses: erlef/setup-beam@v1 |
| 50 |
with: |
| 51 |
otp-version: '> 0' |
| 52 |
|
| 53 |
- name: Run ct-examples |
| 54 |
run: make ct-examples |
| 55 |
|
| 56 |
- name: Upload logs |
| 57 |
uses: actions/upload-artifact@v4 |
| 58 |
if: always() |
| 59 |
with: |
| 60 |
name: Common Test logs (examples) |
| 61 |
path: | |
| 62 |
logs/ |
| 63 |
!logs/**/log_private |