Update check file of i11637 #201
This file contains hidden or 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: scaladoc | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
env: | |
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }} | |
runs-on: ubuntu-latest | |
if: "( github.event_name == 'pull_request' | |
&& !contains(github.event.pull_request.body, '[skip ci]') | |
&& !contains(github.event.pull_request.body, '[skip docs]') | |
) | |
|| contains(github.event.ref, 'scaladoc') | |
|| contains(github.event.ref, 'master')" | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Cache Coursier | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier | |
key: sbt-coursier-cache | |
- name: Cache SBT | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Compile and test scala3doc-js | |
run: ./project/scripts/sbt scaladoc-js/test | |
- name: Compile and test | |
run: | | |
./project/scripts/sbt scaladoc/test | |
./project/scripts/cmdScaladocTests | |
- name: Locally publish self | |
run: ./project/scripts/sbt scaladoc/publishLocal | |
- name: Generate self documentation | |
run: ./project/scripts/sbt scaladoc/generateSelfDocumentation | |
- name: Generate testcases documentation | |
run: ./project/scripts/sbt scaladoc/generateTestcasesDocumentation | |
- name: Generate Scala 3 documentation | |
run: ./project/scripts/sbt scaladoc/generateScalaDocumentation | |
- name: Generate documentation for example project using dotty-sbt | |
run: ./project/scripts/sbt "sbt-test/scripted sbt-dotty/scaladoc" | |
- name: Generate index file | |
run: scaladoc/scripts/mk-index.sh scaladoc/output > scaladoc/output/index.html | |
- name: Upload documentation to server | |
uses: azure/CLI@v1 | |
if: env.AZURE_STORAGE_SAS_TOKEN | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
with: | |
inlineScript: | | |
DOC_DEST=pr-${PR_NUMBER:-${GITHUB_REF##*/}} | |
echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST | |
az storage container create --name $DOC_DEST --account-name scala3docstorage --public-access container | |
az storage blob upload-batch -s scaladoc/output -d $DOC_DEST --account-name scala3docstorage | |
stdlib-sourcelinks-test: | |
runs-on: ubuntu-latest | |
if: "( github.event_name == 'pull_request' | |
&& !contains(github.event.pull_request.body, '[skip ci]') | |
&& !contains(github.event.pull_request.body, '[skip docs]') | |
) | |
|| contains(github.event.ref, 'scaladoc') | |
|| contains(github.event.ref, 'scala3doc') | |
|| contains(github.event.ref, 'master')" | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 8 | |
- name: Test sourcelinks to stdlib | |
run: ./project/scripts/sbt scaladoc/sourceLinksIntegrationTest:test |