Skip to content

Commit

Permalink
ci: run examples tests
Browse files Browse the repository at this point in the history
Tests for examples exist and are run as part of the Makefile test
target, however they were not being run as part of the CI. This commit
fixes it by adding a new step in the test workflow.

Related to go-git#912.
  • Loading branch information
crazybolillo committed Mar 11, 2024
1 parent ca05e2c commit 390406d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ jobs:
git config --global user.email "gha@example.com"
git config --global user.name "GitHub Actions"
- name: Test
- name: Coverage
run: make test-coverage

- name: Examples
env:
EXAMPLES_DIR: _examples
run: go test -v _examples/common_test.go _examples/common.go --examples

0 comments on commit 390406d

Please sign in to comment.