-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (57 loc) · 1.62 KB
/
links.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: links
on:
push:
branches:
- main
- staging
pull_request:
jobs:
link_checker:
runs-on: ubuntu-latest
steps:
- name: Setup prerequisites
run: |
sudo apt-get update
sudo apt-get install -y curl make libxml2-dev libxslt-dev libnode-dev node-gyp npm openssl xsltproc
- name: Setup snaps
run: |
sudo snap install aws-cli --classic
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Update submodules
run: |
make update-init update-modules
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Setup npm
run: |
npm install
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build site
run: |
make _site
- name: Link Checker
uses: lycheeverse/lychee-action@v1.2.0
with:
args: --verbose --no-progress --exclude-file .lycheeignore -- _site/**/*.html
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# - name: Create Issue From File
# uses: peter-evans/create-issue-from-file@v2
# with:
# title: Link Checker Report
# content-filepath: ./lychee/out.md
# labels: report, automated issue