Skip to content

Commit

Permalink
Create scala.yml (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylonee authored Oct 28, 2023
1 parent aea566c commit 258024e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Scala CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- name: Run tests
run: sbt test
2 changes: 2 additions & 0 deletions src/test/scala/WatchlistSyncSpec.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import io.circe.generic.auto._
import io.circe.parser.decode
import model._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

import scala.io.Source

class WatchlistSyncSpec extends AnyFlatSpec with Matchers {
Expand Down

0 comments on commit 258024e

Please sign in to comment.