6502-opcodes/.github/workflows/ci.yml
Mark Canlas 58f13901fb java 21
2024-03-18 15:21:09 +01:00

27 lines
557 B
YAML

name: Continuous integration
on:
push:
branches: ['**']
jobs:
lint-and-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: sbt
- run: sbt 'scalafixAll --check' scalafmtSbtCheck scalafmtCheck
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
- run: sbt +test
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}