6502-opcodes/.github/workflows/ci.yml
Mark Canlas 1e7f57f1ad jdk 23
2024-10-06 20:11:16 -04:00

29 lines
624 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: '23'
cache: sbt
- name: Check linting and formatting
run: sbt 'scalafixAll --check' scalafmtSbtCheck scalafmtCheck
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
- name: Unit test
run: sbt +test
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}