mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2026-03-03 04:16:39 +00:00
31 lines
656 B
YAML
31 lines
656 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
|
|
|
|
- uses: sbt/setup-sbt@v1
|
|
|
|
- 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 }}
|