Skip to content

Commit

Permalink
Add integration test for custom output paths (#1309) (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Jan 5, 2024
1 parent a428289 commit 57219e4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- push
- pull_request

env:
CUSTOM_OUTPUT_PATH: lychee/custom_output.md

jobs:
lychee-action:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,6 +50,23 @@ jobs:
'./**/*.rst'
fail: true

- name: test custom output path - creation
uses: ./
with:
output: "${{ env.CUSTOM_OUTPUT_PATH }}"
debug: true

- name: test custom output path - validation
run: |
echo "Checking custom output file at ${{ env.CUSTOM_OUTPUT_PATH }}"
if [ ! -f "${{ env.CUSTOM_OUTPUT_PATH }}" ]; then
echo "Not found"
exit 1
else
echo "Found. Contents:"
cat "${{ env.CUSTOM_OUTPUT_PATH }}"
fi
- name: Install jq
run: sudo apt-get install jq

Expand Down

0 comments on commit 57219e4

Please sign in to comment.