Reorder comments #331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v5 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
_site-root/ | |
_site/ | |
key: generated-site-dir | |
- uses: actions/jekyll-build-pages@v1 | |
- run: | | |
mkdir -p _site-root | |
ln -s ../_site/ _site-root/${{ github.event.repository.name }} | |
local-links-check: | |
runs-on: ubuntu-latest | |
#jobs.external-links-check.if: ${{ always() }} | |
needs: build | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
_site-root/ | |
_site/ | |
key: generated-site-dir | |
- 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 --color=always --skip-tls-verification | |
--include="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/" | |
--exclude="^https://github[.]com/rspamd/rspamd[.]com/edit/master/" | |
--exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/(doc/lua/((lua|rspamd)_.+|ucl)[.]html(#.+)?|.*#top)$" | |
#--include="^https://rspamd[.]com/${{ github.event.repository.name }}/" | |
#--exclude="^https://rspamd[.]com/${{ github.event.repository.name }}/." | |
debug: true | |
external-links-check: | |
runs-on: ubuntu-latest | |
#jobs.local-links-check.if: ${{ always() }} | |
needs: build | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
_site-root/ | |
_site/ | |
key: generated-site-dir | |
- 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 | |
--exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/" | |
--exclude="^https://rspamd[.]com/${{ github.event.repository.name }}/" | |
--exclude="^https://github[.]com/rspamd/rspamd[.]com/edit/master/" | |
--exclude="^https://rspamd[.]com/${{ github.event.repository.name }}/." | |
debug: true |