summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authormergify[bot]2022-09-27 22:44:18 +0000
committerGitHub2022-09-27 22:44:18 +0000
commit9f1eae19445e110bb743176767f59970ce1d36b5 (patch)
tree2898e6ef450aa0dc20542be01e20941b043bf51e /.github
parentf19556801137091fa79a6d79395985474527b72d (diff)
[ci] Split formatting and docs checks into separate task (backport #2749) (#2750)
* [ci] Split formatting and docs checks into separate task (#2749) (cherry picked from commit ed2694293d61aa930341aef9f30c7762b889b5ae) # Conflicts: # .github/workflows/test.yml * Resolve backport conflicts Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml25
1 files changed, 18 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 139d5908..e48f37ea 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -44,12 +44,6 @@ jobs:
java-version: ${{ matrix.jvm }}
- 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
@@ -58,6 +52,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
@@ -90,7 +101,7 @@ jobs:
# When adding new jobs, please add them to `needs` below
check-tests:
name: "check tests"
- needs: [ci, integration]
+ needs: [ci, integration, doc]
runs-on: ubuntu-20.04
if: success() # only run if all tests have passed
outputs: