Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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.
# Divergence:
# SOURCE_BRANCH variable value is set for each execution of make,
# since the actions/checkout execution switches to a single commit.
# COMPOSE variable value is set to `podman-compose`, since podman is
# default for github runners

on:
pull_request:
push:
branches:
- main

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install compose
run: |
sudo apt install podman-compose
podman-compose --version

- name: Build Test Image
run: make build-test-image SOURCE_BRANCH=${{ github.head_ref || github.ref_name }}

- name: Configure unprivileged ports
run: sudo sysctl -w net.ipv4.ip_unprivileged_port_start=443

- name: Run Database Tests
run: |
make check-db SOURCE_BRANCH=${{ github.head_ref || github.ref_name }} COMPOSE=podman-compose
Loading