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