Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Split formatting and docs checks into separate task #2749

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ jobs:
echo "$(pwd)/usr/bin" >> $GITHUB_PATH
- name: Cache Scala
uses: coursier/cache-action@v5
- name: Check Formatting (Scala 2.12 only)
if: startsWith(matrix.scala, '2.12')
run: sbt ++${{ matrix.scala }} scalafmtCheckAll
- name: Documentation (Scala 2.12 only)
if: startsWith(matrix.scala, '2.12')
run: sbt ++${{ matrix.scala }} docs/mdoc unidoc
- name: Use Treadle for Pull Requests
if: github.event_name == 'pull_request'
run: echo "CHISEL3_CI_USE_TREADLE=1" >> $GITHUB_ENV
Expand All @@ -66,6 +60,23 @@ jobs:
- name: Binary compatibility
run: sbt ++${{ matrix.scala }} mimaReportBinaryIssues

doc:
name: Formatting and Documentation
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.11"
- name: Cache Scala
uses: coursier/cache-action@v5
- name: Check Formatting
run: sbt scalafmtCheckAll
- name: Documentation
run: sbt docs/mdoc unidoc

integration:
name: Integration Tests (w/ chiseltest)
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -123,7 +134,7 @@ jobs:
# When adding new jobs, please add them to `needs` below
check-tests:
name: "check tests"
needs: [ci, integration, std]
needs: [ci, integration, std, doc]
runs-on: ubuntu-20.04
if: success() # only run if all tests have passed
outputs:
Expand Down