From 124f1a3e724a475e7181e09cae2c6f16cc12da83 Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Mon, 9 Oct 2023 13:43:24 -0700 Subject: [PATCH] test issue --- .github/workflows/test.yml | 12 +++++------- action.sh | 9 +++++++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ac3efc..bff327d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 + unset $(env | egrep '^GITHUB|^RUNNER|^ACTIONS|^HOST|^CI|^INPUT|°SHLVL' |awk -F'=' '{print $1}') + echo "Cleaned environment:" + env diff --git a/action.sh b/action.sh index 882a12d..f08a45f 100755 --- a/action.sh +++ b/action.sh @@ -4,6 +4,11 @@ set -eo pipefail run() { echo -e "\033[1;34m$@\033[0m" + echo + echo + echo "-----------------" + echo + echo "$@" } @@ -47,7 +52,7 @@ if [[ -z "$docker_image" ]]; then fi # ref: https://docs.miktex.org/manual/envvars.html -run docker run --rm \ +docker run --rm \ -e "BIBINPUTS" \ -e "BSTINPUTS" \ -e "MFINPUTS" \ @@ -112,4 +117,4 @@ run docker run --rm \ -w "$GITHUB_WORKSPACE" \ "$docker_image" \ /bin/bash -eo pipefail -c -- \ - "$run" + "echo $run"