mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
Add E2E tests
This commit is contained in:
parent
487dfed981
commit
29479d064e
13 changed files with 2204 additions and 216 deletions
45
.github/workflows/tests.yaml
vendored
45
.github/workflows/tests.yaml
vendored
|
@ -16,3 +16,48 @@ jobs:
|
|||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install pytest mockito
|
||||
venv/bin/pytest test/test_on-modify_unit.py
|
||||
|
||||
e2e-tests:
|
||||
needs: unit-tests
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: "task [stable] & timew [stable]"
|
||||
runner: ubuntu-latest
|
||||
container: task-stable-timew-stable
|
||||
- name: "task [develop] & timew [stable]"
|
||||
runner: ubuntu-latest
|
||||
container: task-develop-timew-stable
|
||||
- name: "task [stable] & timew [develop]"
|
||||
runner: ubuntu-latest
|
||||
container: task-stable-timew-develop
|
||||
- name: "task [develop] & timew [develop]"
|
||||
runner: ubuntu-latest
|
||||
container: task-develop-timew-develop
|
||||
|
||||
runs-on: ${{ matrix.runner }}
|
||||
continue-on-error: ${{ matrix.continue-on-error == true }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name : Login to GHCR
|
||||
uses : docker/login-action@v2.1.0
|
||||
with :
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build ${{ matrix.name }}
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
GITHUB_USER: ${{ github.repository_owner }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CONTAINER: ${{ matrix.container }}
|
||||
run: docker-compose build ${CONTAINER}
|
||||
- name: Test ${{ matrix.name }}
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CONTAINER: ${{ matrix.container }}
|
||||
run: docker-compose run ${CONTAINER}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue