Skip to content

Commit

Permalink
test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Oct 9, 2023
1 parent 239bf30 commit ca7baa0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
texlive_version: [2020, 2021, 2022, latest]
texlive_version: [latest]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand All @@ -16,9 +16,7 @@ jobs:
scheme: small
texlive_version: ${{ matrix.texlive_version }}
run: |
apk add make
tlmgr install blindtext
cd test && make
- name: Check pdf files
run: |
file test/test.pdf | grep -q ' PDF '
env
echo $(env | egrep '^GITHUB|^RUNNER|^ACTIONS|^HOST|^CI|^INPUT|°SHLVL' |awk -F'=' '{print $1}')
echo "Cleaned environment:"
env
15 changes: 13 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eo pipefail

run() {
echo -e "\033[1;34m$@\033[0m"
echo
echo
echo "-----------------"
echo
echo
"$@"
}

Expand Down Expand Up @@ -46,8 +51,14 @@ if [[ -z "$docker_image" ]]; then
docker_image="ghcr.io/xu-cheng/texlive-$scheme:$image_version"
fi

echo "DEBUG Run:"
echo
echo "$run"
echo
echo "DEBUG END"

# ref: https://docs.miktex.org/manual/envvars.html
run docker run --rm \
docker run --rm \
-e "BIBINPUTS" \
-e "BSTINPUTS" \
-e "MFINPUTS" \
Expand Down Expand Up @@ -112,4 +123,4 @@ run docker run --rm \
-w "$GITHUB_WORKSPACE" \
"$docker_image" \
/bin/bash -eo pipefail -c -- \
"$run"
"echo $run"

0 comments on commit ca7baa0

Please sign in to comment.