Files
chipyard/.github/workflows/run-ci.yml
chick edb1537561 Formatting code to chisel standard
- ran sbt scalafmtAll
  - lot of small formatting changes
- added test that code must stay formatted
  - part of github actions workflow
2021-08-16 15:35:22 -07:00

40 lines
753 B
YAML

name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
scala: [ 2.12.14 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v10
- name: Cache
uses: coursier/cache-action@v5
- name: Get submodules
run: git submodule update --init
- name: Test
run: sbt test
doc:
name: Documentation and formatting
runs-on: ubuntu-latest
steps:
- name: Check Formatting
run: sbt scalafmtCheckAll
all_test_passed:
name: "all tests passed"
runs-on: ubuntu-latest
steps:
- run: echo Success