Skip to content

Commit 57526fc

Browse files
committed
Disable inherited upstream workflow — not applicable to this repo
1 parent a513100 commit 57526fc

1 file changed

Lines changed: 3 additions & 81 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 3 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,3 @@
1-
name: PR Workflows
2-
3-
# Run action on pull request event
4-
on: [pull_request]
5-
6-
jobs:
7-
# Build exampleSite
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
# checkout to the commit that has been pushed
12-
- uses: actions/checkout@v6
13-
14-
# Setup mise
15-
- uses: jdx/mise-action@v3
16-
17-
- name: Install dependencies
18-
run: |
19-
mise run install # install theme dependency
20-
21-
- name: Build
22-
run: |
23-
hugo --minify
24-
25-
lighthouse-check:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Waiting for Netlify Preview
29-
uses: kamranayub/wait-for-netlify-action@v2.1.1
30-
id: preview
31-
with:
32-
site_name: "toha-example-site"
33-
max_timeout: 300
34-
env:
35-
NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}
36-
37-
- name: Run Lighthouse
38-
uses: foo-software/lighthouse-check-action@v12.0.1
39-
id: lighthouseCheck
40-
with:
41-
gitHubAccessToken: ${{secrets.GITHUB_TOKEN}}
42-
emulatedFormFactor: "all"
43-
prCommentEnabled: true
44-
prCommentSaveOld: true
45-
timeout: 5
46-
urls: "${{ steps.preview.outputs.url }},${{ steps.preview.outputs.url }}/posts/,${{ steps.preview.outputs.url }}/posts/markdown-sample/,${{ steps.preview.outputs.url }}/posts/shortcodes/"
47-
48-
# Check for any broken links
49-
markdown-link-check:
50-
runs-on: ubuntu-latest
51-
steps:
52-
# checkout to latest commit
53-
- uses: actions/checkout@master
54-
55-
- name: Waiting for Netlify Preview
56-
uses: kamranayub/wait-for-netlify-action@v2.1.1
57-
id: preview
58-
with:
59-
site_name: "toha-example-site"
60-
max_timeout: 300
61-
env:
62-
NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}
63-
64-
- name: Link Checker
65-
id: lychee
66-
uses: lycheeverse/lychee-action@v2.7.0
67-
env:
68-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
69-
with:
70-
args: "--verbose --exclude-mail ${{steps.preview.outputs.url}} --exclude=['https://www.udemy.com/']"
71-
output: lychee/out.md
72-
73-
- name: Comment Broken Links
74-
if: ${{ steps.lychee.outputs.exit_code != 0 }}
75-
uses: marocchino/sticky-pull-request-comment@v2
76-
with:
77-
path: lychee/out.md
78-
79-
- name: Fail workflow if broken links found
80-
if: ${{ steps.lychee.outputs.exit_code != 0 }}
81-
run: exit 1
1+
# This workflow was part of the upstream toha-example-site repo.
2+
# It requires Netlify tokens and is for theme maintainers only.
3+
# Disabled — not applicable to this repo.

0 commit comments

Comments
 (0)