Skip to content

Commit

Permalink
Merge pull request #1902 from dscho/upgrade-lychee
Browse files Browse the repository at this point in the history
Upgrade lychee
  • Loading branch information
dscho authored Oct 9, 2024
2 parents e857def + 72393de commit a29d864
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/actions/deploy-to-github-pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ runs:
- name: check for broken links
id: lychee
uses: lycheeverse/lychee-action@d4128702eae98bbc5ecf74df0165a8156c80920a # until an official version is out that includes https://github.com/lycheeverse/lychee/pull/1422
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: nightly # until an official version includes https://github.com/lycheeverse/lychee/pull/1422
args: >-
--offline
--fallback-extensions html
Expand All @@ -144,7 +143,8 @@ runs:
fail: false
failIfEmpty: false # needed because its default overrides `fail = false`

- name: ${{ env.lychee_exit_code != '0' && 'maybe close' || 'open or update' }} link checker issue
- name: ${{ env.lychee_exit_code != '0' && 'open or update' || 'maybe close' }} link checker issue
if: env.lychee_exit_code != ''
uses: actions/github-script@v7
with:
github-token: ${{ inputs.github-token }}
Expand Down Expand Up @@ -198,6 +198,7 @@ runs:
run: sudo sh -c 'echo "185.199.108.153 git-scm.com" >>/etc/hosts'
- name: Run Playwright tests
shell: bash
id: playwright
env:
PLAYWRIGHT_TEST_URL: ${{ steps.pages.outputs.base_url }}
run: |
Expand All @@ -206,9 +207,10 @@ runs:
https://*|http://git-scm.com) ;; # okay, leave as-is
http://*) PLAYWRIGHT_TEST_URL="https://${PLAYWRIGHT_TEST_URL#http://}";;
esac &&
echo "result=$PLAYWRIGHT_TEST_URL" >>$GITHUB_OUTPUT &&
npx playwright test --project=chrome
- uses: actions/upload-artifact@v4
if: always()
if: always() && steps.playwright.outputs.result != ''
with:
name: playwright-report
path: playwright-report/
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ jobs:
- name: check for broken links
id: lychee
uses: lycheeverse/lychee-action@d4128702eae98bbc5ecf74df0165a8156c80920a # until an official version is out that includes https://github.com/lycheeverse/lychee/pull/1422
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: nightly # until an official version includes https://github.com/lycheeverse/lychee/pull/1422
args: >-
--offline
--fallback-extensions html
Expand All @@ -80,11 +79,14 @@ jobs:
- name: Install @playwright/test
run: npm install @playwright/test
- name: Run Playwright tests
id: playwright
env:
PLAYWRIGHT_TEST_URL: http://localhost:5000/
run: npx playwright test --project=chrome
run: |
echo "result=$PLAYWRIGHT_TEST_URL" >>$GITHUB_OUTPUT &&
npx playwright test --project=chrome
- uses: actions/upload-artifact@v4
if: always()
if: always() && steps.playwright.outputs.result != ''
with:
name: playwright-report
path: playwright-report/

0 comments on commit a29d864

Please sign in to comment.