Skip to content

Commit bfdc1c3

Browse files
committed
Move ci script to github action
1 parent 283698d commit bfdc1c3

File tree

3 files changed

+34
-23
lines changed

3 files changed

+34
-23
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-20.04
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 2.5.8
12+
bundler-cache: true
13+
- name: Set up coursier
14+
uses: laughedelic/coursier-setup@v1
15+
with:
16+
jvm: adopt:11
17+
- name: Run mdoc
18+
run: |
19+
./scripts/run-mdoc.sh
20+
rm -r /tmp/mdoc-out/
21+
- name: Jekyll build
22+
run: bundle exec jekyll build
23+
- name: HTMLProofer
24+
run: |
25+
# # Checking for docs.scala-lang/blob/master leads to a chicken and egg problem because of the edit links of new pages.
26+
bundle exec htmlproofer ./_site/\
27+
--only-4xx\
28+
--http-status-ignore "400,401,429"\
29+
--empty-alt-ignore\
30+
--allow-hash-href\
31+
--url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/'
32+

scripts/ci.sh

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

scripts/run-mdoc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
set -eux
33

4-
coursier launch org.scalameta:mdoc_2.12:2.2.13 -- \
4+
cs launch org.scalameta:mdoc_2.12:2.2.13 -- \
55
--in . \
66
--out /tmp/mdoc-out/ \
7-
--classpath $(coursier fetch -p com.chuusai:shapeless_2.12:2.3.3) \
7+
--classpath $(cs fetch -p com.chuusai:shapeless_2.12:2.3.3) \
88
--scalac-options "-Xfatal-warnings -feature" \
99
--no-link-hygiene \
1010
--include '**.md'

0 commit comments

Comments
 (0)