aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-01-25 12:30:35 +0100
committerLoïc Hoguin <[email protected]>2024-01-26 12:34:37 +0100
commit7d3aa6c9dd9ed6ae6aa769e54e139ec8ff7a49cf (patch)
treeb600b0fc38658742787a1c03592b4fdd112f8dd3
parentb36f064a91c36f3659263410fc6954c788a4609d (diff)
downloadcowboy-7d3aa6c9dd9ed6ae6aa769e54e139ec8ff7a49cf.tar.gz
cowboy-7d3aa6c9dd9ed6ae6aa769e54e139ec8ff7a49cf.tar.bz2
cowboy-7d3aa6c9dd9ed6ae6aa769e54e139ec8ff7a49cf.zip
Run make ct-examples at the end of normal CI
-rw-r--r--.github/workflows/ci.yaml37
-rw-r--r--Makefile2
2 files changed, 38 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index f20a63f..b6443f0 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -9,6 +9,9 @@ on:
## Every Monday at 2am.
- cron: 0 2 * * 1
+env:
+ CI_ERLANG_MK: 1
+
jobs:
cleanup-master:
name: Cleanup master build
@@ -29,3 +32,37 @@ jobs:
name: Cowboy
needs: cleanup-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/[email protected]
+
+ - 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/[email protected]
+ 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
diff --git a/Makefile b/Makefile
index 1609bbf..1be1885 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ endef
include erlang.mk
-# Don't run the examples test suite by default.
+# Don't run the examples/autobahn test suites by default.
ifndef FULL
CT_SUITES := $(filter-out examples ws_autobahn,$(CT_SUITES))