All checks were successful
Auto Deploy pdf-web-tolkit / Check Docker State (push) Successful in 1s
Auto Deploy pdf-web-tolkit / pdf-tools-git-prep (push) Successful in 1s
Auto Deploy pdf-web-tolkit / bld-pdf-tools (push) Successful in 4s
Auto Deploy pdf-web-tolkit / dpy-pdf-tools (push) Successful in 12s
28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
name: PR-Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*' # matches every branch that doesn't contain a '/'
|
|
- '*/*' # matches every branch containing a single '/'
|
|
- '**' # matches every branch
|
|
- '!master' # excludes master
|
|
- '!main' # excludes main
|
|
|
|
jobs:
|
|
# Environment/Checks
|
|
pr-check:
|
|
name: PR Build
|
|
runs-on: ubuntu-24.04
|
|
defaults:
|
|
run:
|
|
working-directory: ./job-scripts
|
|
timeout-minutes: 30
|
|
steps:
|
|
# Make sure docker is available
|
|
- run: docker ps
|
|
# Falback to clone the repo at the current commit, need to get commit or branch name
|
|
# https://stackoverflow.com/questions/58886293/getting-current-branch-and-commit-hash-in-github-action#58886352
|
|
# - run: (cd /root && git clone https://git.tidoni-sky.ddnss.de/tidoni/pdf-web-toolkit.git)
|
|
# - run: (cd /root/pdf-web-toolkit && docker build -t pdf-web-toolkit .)
|
|
- run: docker build -t pdf-web-toolkit .
|
|
- run: docker run --rm --name pdf-web-toolkit pdf-web-toolkit pytest
|