aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrazyBolillo <antonio@zoftko.com>2024-02-14 22:31:21 -0600
committerCrazyBolillo <antonio@zoftko.com>2024-03-15 17:07:01 -0600
commit295dfd34aab6e63050d5f1ba8e6ffc9505dd28a3 (patch)
tree31f2831b670518f6dabd1f2a6019ee96c6216465
parentca05e2c4d8cb1801d3a8c12773bac206774871a3 (diff)
downloadgo-git-295dfd34aab6e63050d5f1ba8e6ffc9505dd28a3.tar.gz
build: run example tests during CI workflow
Tests for examples exist, however they were not being run as part of the CI. This commit fixes it by adding a new step in the test workflow which runs said tests. Related to #912.
-rw-r--r--.github/workflows/test.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f94d3e7..2218208 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -34,3 +34,8 @@ jobs:
- name: Test
run: make test-coverage
+
+ - name: Examples
+ env:
+ EXAMPLES_DIR: _examples
+ run: go test -test.v -test.run='^TestBuildExamples$'