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