mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-10-31 21:07:39 +00:00
add github action
This commit is contained in:
parent
3b159261ca
commit
aee8bef2b7
31
.github/workflows/scala.yml
vendored
Normal file
31
.github/workflows/scala.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Scala CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Cache sbt
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.sbt
|
||||
~/.cache/coursier/v1
|
||||
key: scala
|
||||
|
||||
- name: Run tests
|
||||
run: sbt "+scalafixAll --check" +scalafmtCheck "+test"
|
Loading…
Reference in New Issue
Block a user