6502-opcodes/.github/workflows/ci.yml

27 lines
557 B
YAML
Raw Normal View History

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-07-06 17:21:55 +00:00
name: Unit test
2023-01-02 18:37:14 +00:00
runs-on: ubuntu-latest
2021-04-05 16:16:41 +00:00
steps:
2024-03-04 14:56:39 +00:00
- uses: actions/checkout@v4
2022-06-20 17:37:41 +00:00
2024-03-04 14:56:39 +00:00
- uses: actions/setup-java@v4
2022-06-20 17:37:41 +00:00
with:
distribution: temurin
2024-03-22 08:43:26 +00:00
java-version: '22'
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 }}