Skip to content

Commit 1b409f6

Browse files
authored
Merge pull request #1276 from exoego/github-actions
2 parents dbc4a0f + 4e7ce9b commit 1b409f6

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: scala-lang docs
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: '00 0 * * *'
7+
8+
jobs:
9+
build-and-validate-docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: '2.5.8'
16+
bundler-cache: true
17+
- name: Build documents
18+
run: |
19+
bundle update --bundler
20+
bundle exec jekyll build 2> error.log
21+
cat >&2 error.log
22+
( ! grep -qie Error -e Warn error.log )
23+
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \)
24+
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | ( ! read )
25+
- name: Proofing (Pull Request)
26+
if: ${{ github.event_name != 'schedule' }}
27+
run: |
28+
bundle exec htmlproofer ./_site/ --disable-external --only-4xx --empty-alt-ignore --allow-hash-href
29+
- name: Proofing (Cron)
30+
if: ${{ github.event_name == 'schedule' }}
31+
run: |
32+
bundle exec htmlproofer ./_site/ --external_only --only-4xx --http-status-ignore "400,401,429" --empty-alt-ignore --allow-hash-href --url-ignore "/trends.google.com/,/pgp.mit.edu/,/www.oracle.com/"

.travis.yml

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

0 commit comments

Comments
 (0)