mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Run make ct-examples at the end of normal CI
This commit is contained in:
parent
b36f064a91
commit
7d3aa6c9dd
2 changed files with 38 additions and 1 deletions
37
.github/workflows/ci.yaml
vendored
37
.github/workflows/ci.yaml
vendored
|
@ -9,6 +9,9 @@ on:
|
||||||
## Every Monday at 2am.
|
## Every Monday at 2am.
|
||||||
- cron: 0 2 * * 1
|
- cron: 0 2 * * 1
|
||||||
|
|
||||||
|
env:
|
||||||
|
CI_ERLANG_MK: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-master:
|
cleanup-master:
|
||||||
name: Cleanup master build
|
name: Cleanup master build
|
||||||
|
@ -29,3 +32,37 @@ jobs:
|
||||||
name: Cowboy
|
name: Cowboy
|
||||||
needs: cleanup-master
|
needs: cleanup-master
|
||||||
uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master
|
uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master
|
||||||
|
|
||||||
|
# The examples test suite is nice to run but typically not
|
||||||
|
# important. So we run them after we are done with the other
|
||||||
|
# test suites. At this point we know that Erlang was built
|
||||||
|
# so we can just use the latest version.
|
||||||
|
|
||||||
|
examples:
|
||||||
|
name: Check examples
|
||||||
|
needs: check
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
if: ${{ always() }}
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
- name: Output latest Erlang/OTP version
|
||||||
|
id: latest_version
|
||||||
|
run: |
|
||||||
|
{
|
||||||
|
echo "latest<<EOF"
|
||||||
|
make ci-list | grep -v rc | grep -v master | tail -n1
|
||||||
|
echo EOF
|
||||||
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Restore CI cache
|
||||||
|
uses: actions/cache/restore@v3.3.2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/erlang/
|
||||||
|
key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ steps.latest_version.outputs.latest }}
|
||||||
|
|
||||||
|
- name: Run ct-examples
|
||||||
|
run: make ct-examples LATEST_ERLANG_OTP=1
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -50,7 +50,7 @@ endef
|
||||||
|
|
||||||
include erlang.mk
|
include erlang.mk
|
||||||
|
|
||||||
# Don't run the examples test suite by default.
|
# Don't run the examples/autobahn test suites by default.
|
||||||
|
|
||||||
ifndef FULL
|
ifndef FULL
|
||||||
CT_SUITES := $(filter-out examples ws_autobahn,$(CT_SUITES))
|
CT_SUITES := $(filter-out examples ws_autobahn,$(CT_SUITES))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue