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:
|
2024-03-04 09:56:39 -05:00
|
|
|
- uses: actions/checkout@v4
|
2022-06-20 13:37:41 -04:00
|
|
|
|
2024-03-04 09:56:39 -05:00
|
|
|
- uses: actions/setup-java@v4
|
2022-06-20 13:37:41 -04:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
2024-03-22 09:43:26 +01:00
|
|
|
java-version: '22'
|
2023-01-02 13:37:14 -05:00
|
|
|
cache: sbt
|
2021-04-05 12:21:06 -04:00
|
|
|
|
2024-07-07 20:48:48 -04:00
|
|
|
- name: Check linting and formatting
|
|
|
|
run: sbt 'scalafixAll --check' scalafmtSbtCheck scalafmtCheck
|
2023-06-13 13:32:47 -04:00
|
|
|
env:
|
|
|
|
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
|
|
|
|
|
2024-07-07 20:48:48 -04:00
|
|
|
- name: Unit test
|
|
|
|
run: sbt +test
|
2023-01-02 15:58:16 -05:00
|
|
|
env:
|
|
|
|
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
|