-
Notifications
You must be signed in to change notification settings - Fork 95
49 lines (42 loc) · 1.16 KB
/
linkchecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
name: linkchecker
on:
pull_request:
branches:
- master
- "[0-9]+.[0-9]+"
env:
RUBY_VERSION: 3.1
BUNDLE_WITHOUT: "nanoc"
MAKE_J: 3
jobs:
check-html:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: guides
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- name: Install linkchecker
run: |
sudo apt-get update
sudo apt-get install linkchecker -y
- name: Clean the environment
run: make clean
- name: Build HTML with local links
run: |
make -j ${{ env.MAKE_J }} html BUILD=foreman-el LINKS=LOCAL
make -j ${{ env.MAKE_J }} html BUILD=foreman-deb LINKS=LOCAL
make -j ${{ env.MAKE_J }} html BUILD=katello LINKS=LOCAL
make -j ${{ env.MAKE_J }} html BUILD=satellite LINKS=LOCAL
make -j ${{ env.MAKE_J }} html BUILD=orcharhino LINKS=LOCAL
- name: Check HTML links of all builds
run: |
make linkchecker-tryer