Skip to content

Commit 21bf268

Browse files
committed
Migrate to Github Actions
1 parent a225298 commit 21bf268

File tree

2 files changed

+31
-19
lines changed

2 files changed

+31
-19
lines changed

Diff for: .github/workflows/ci.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: scala-lang docs
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: '00 0 * * *'
7+
8+
jobs:
9+
foo:
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 exec jekyll build 2> error.log
20+
cat >&2 error.log
21+
( ! grep -qie Error -e Warn error.log )
22+
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \)
23+
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | ( ! read )
24+
- name: Proofing (Pull Request)
25+
if: ${{ github.event_name != 'schedule' }}
26+
run: |
27+
bundle exec htmlproofer ./_site/ --disable-external --only-4xx --empty-alt-ignore --allow-hash-href
28+
- name: Proofing (Cron)
29+
if: ${{ github.event_name == 'schedule' }}
30+
run: |
31+
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/"

Diff for: .travis.yml

-19
This file was deleted.

0 commit comments

Comments
 (0)