File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+ # This workflow is intended to follow testing as performed manually
3+ # by an actual developer. This includes using make and relying on docker
4+ # or podman CLI to build images.
5+ # The intent is to verify that developers can run these tests locally,
6+ # with no, or at worst minimal, modifications.
7+ # As such, all changes, that would lead to divergence with recommended
8+ # developer practice, must be justified in comments.
9+ on :
10+ pull_request :
11+ push :
12+ branches :
13+ - main
14+
15+ jobs :
16+ tests :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set SOURCE_BRANCH
22+ run : SOURCE_BRANCH=${{ github.head_ref || github.ref_name }}
23+
24+ - name : Install compose
25+ run : |
26+ sudo apt install docker-compose
27+ docker-compose --version
28+
29+ - name : Build Test Image
30+ run : make build-test-image
31+
32+ - name : Run Unit and Integration Tests
33+ run : make check-in-container
34+
35+ - name : Run Database Tests
36+ env :
37+ COMPOSE_PROJECT_NAME : packit-service
38+ run : make check-db
You can’t perform that action at this time.
0 commit comments