27 lines
557 B
YAML
Raw Normal View History

2023-06-13 22:39:29 -04:00
name: Continuous integration
2021-04-05 12:16:41 -04:00
on:
push:
2022-06-20 13:37:41 -04:00
branches: ['**']
2021-04-05 12:16:41 -04:00
jobs:
2023-01-02 13:45:35 -05:00
lint-and-test:
2023-07-06 13:21:55 -04:00
name: Unit test
2023-01-02 13:37:14 -05:00
runs-on: ubuntu-latest
2021-04-05 12:16:41 -04:00
steps:
2023-01-02 13:37:14 -05:00
- uses: actions/checkout@v3
2022-06-20 13:37:41 -04:00
2023-01-02 13:37:14 -05:00
- uses: actions/setup-java@v3
2022-06-20 13:37:41 -04:00
with:
distribution: temurin
2023-01-19 11:58:01 -05:00
java-version: '17'
2023-01-02 13:37:14 -05:00
cache: sbt
2021-04-05 12:21:06 -04:00
2023-06-13 13:32:47 -04:00
- run: sbt 'scalafixAll --check' scalafmtSbtCheck scalafmtCheck
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
- run: sbt +test
2023-01-02 15:58:16 -05:00
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}