mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
Improve E2E test workflow
- Print versions of Timewarrior and Taskwarrior at the end of combined image build Clarify what 'develop'/'stable' means in this image - Rename action stages Clarify that this builds and runs the e2e test Docker image
This commit is contained in:
parent
61d6a457de
commit
95212789e5
3 changed files with 9 additions and 2 deletions
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
|
@ -50,7 +50,7 @@ jobs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build ${{ matrix.name }}
|
- name: Build e2e on ${{ matrix.name }}
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
OWNER: ${{ env.REPOSITORY }}
|
OWNER: ${{ env.REPOSITORY }}
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CONTAINER: ${{ matrix.container }}
|
CONTAINER: ${{ matrix.container }}
|
||||||
run: docker compose build ${CONTAINER}
|
run: docker compose build ${CONTAINER}
|
||||||
- name: Test ${{ matrix.name }}
|
- name: Run e2e on ${{ matrix.name }}
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
OWNER: ${{ env.REPOSITORY }}
|
OWNER: ${{ env.REPOSITORY }}
|
||||||
|
|
|
@ -57,6 +57,9 @@ RUN mkdir -p ~/.task/hooks
|
||||||
RUN cp on_modify.py ~/.task/hooks/on-modify.timewarrior
|
RUN cp on_modify.py ~/.task/hooks/on-modify.timewarrior
|
||||||
RUN chmod +x ~/.task/hooks/on-modify.timewarrior
|
RUN chmod +x ~/.task/hooks/on-modify.timewarrior
|
||||||
|
|
||||||
|
RUN echo "timew: $( timew --version )" ; \
|
||||||
|
echo "task: $( task --version )"
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
ENV TASK_USE_PATH=true TIMEW_USE_PATH=true
|
ENV TASK_USE_PATH=true TIMEW_USE_PATH=true
|
||||||
CMD [ "bash", "-c", "/venv/bin/pytest /task-on-modify-hook/test/test_on-modify_e2e.py"]
|
CMD [ "bash", "-c", "/venv/bin/pytest /task-on-modify-hook/test/test_on-modify_e2e.py"]
|
||||||
|
|
|
@ -37,3 +37,7 @@ COPY --from=timew /usr/local/bin/timew /usr/local/bin
|
||||||
# Initialize Timewarrior
|
# Initialize Timewarrior
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
RUN timew :yes
|
RUN timew :yes
|
||||||
|
|
||||||
|
# Print version information
|
||||||
|
RUN echo "timew: $( timew --version )" ; \
|
||||||
|
echo "task: $( task --version )"
|
Loading…
Add table
Add a link
Reference in a new issue