forked from rspamd/rspamd.com
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.83 KB
/
main.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
name: main
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm ls
- run: ./node_modules/.bin/eslint ./
- run: ./node_modules/.bin/stylelint ./**/*.css ./**/*.html ./**/*.js
build-and-check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: actions/jekyll-build-pages@v1
- run: |
mkdir -p _site-root
ln -s ../_site/ _site-root/${{ github.event.repository.name }}
- run: ls ./_site-root/
- run: ls ./_site-root/${{ github.event.repository.name }}
- name: Check broken links
env:
INPUT_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
INPUT_PAGES_PATH: ./_site-root/
INPUT_CMD_PARAMS: >
--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification
--exclude="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/doc/lua/((lua|rspamd)_.+|ucl).html"
INPUT_DEBUG: true
run: |
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v2/entrypoint.sh | bash
- name: Check links using container
if: ${{ always() }}
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
pages_path: ./_site-root/
cmd_params: --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0" --exclude="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/doc/lua/rspamd_.+\\.html"
debug: true