Skip to content

Commit

Permalink
build: run make test during CI workflow
Browse files Browse the repository at this point in the history
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 go-git#912.
  • Loading branch information
crazybolillo committed Mar 15, 2024
1 parent ca05e2c commit 37db86c
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: Test Coverage
run: make test-coverage

- name: Examples
env:
EXAMPLES_DIR: _examples
run: go test -test.v -test.run='^TestBuildExamples$'

0 comments on commit 37db86c

Please sign in to comment.