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 374c3b7
Show file tree
Hide file tree
Showing 2 changed files with 12 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
9 changes: 7 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 @@ -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" \
Expand Down Expand Up @@ -112,4 +117,4 @@ run docker run --rm \
-w "$GITHUB_WORKSPACE" \
"$docker_image" \
/bin/bash -eo pipefail -c -- \
"$run"
"echo $run"

0 comments on commit 374c3b7

Please sign in to comment.