mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-21 03:29:30 +00:00
27 lines
570 B
YAML
27 lines
570 B
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
|
|
jobs:
|
|
lint-and-test:
|
|
name: Continuous integration
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: temurin
|
|
java-version: '17'
|
|
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 }}
|