Skip to content

Commit 1f8c99c

Browse files
committed
different action
1 parent 8831d85 commit 1f8c99c

File tree

2 files changed

+23
-53
lines changed

2 files changed

+23
-53
lines changed

.github/workflows/check-links.yml

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: CheckLinks
1+
name: CI
42
on:
53
push:
6-
branches:
7-
- master
8-
pull_request:
9-
branches:
10-
- master
11-
4+
schedule:
5+
- cron: '0 8 * * 6'
126
jobs:
13-
checklinks:
14-
name: Linux
7+
build:
158
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
189
steps:
1910
- uses: actions/checkout@v2
20-
- name: Ruby
21-
uses: actions/setup-ruby@v1
11+
- uses: actions/setup-ruby@v1
2212
with:
23-
ruby-version: 2.6.x
24-
- name: Setup Rubygems, Bundler, jekyll
25-
run: |
26-
gem update --system --no-document
27-
gem update bundler --no-document
28-
gem install jekyll bundler
29-
bundle install
30-
- name: Build jekyll website with drafts
31-
run: bundle exec jekyll build --drafts
32-
- name: Check for broken links
33-
run: |
34-
bundle exec htmlproofer --log-level :debug ./_site &> links.log
35-
continue-on-error: true
36-
- name: Archive log links
37-
uses: actions/upload-artifact@v1
13+
ruby-version: 2.7.x
14+
- uses: actions/cache@v2
3815
with:
39-
name: links-check.log
40-
path: links.log
16+
path: vendor/bundle
17+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
18+
restore-keys: |
19+
${{ runner.os }}-gems-
20+
- run: |
21+
bundle config path vendor/bundle
22+
bundle install --jobs 4 --retry 3
23+
- run: bundle exec jekyll build
24+
- uses: anishathalye/proof-html@v1
25+
with:
26+
directory: ./_site
27+
enforce_https: false
28+
check_html: false
29+
check_favicon: false
30+
check_img_http: false
31+
check_opengraph: false

.github/workflows/link-check.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)