Skip to content

Commit

Permalink
Merge pull request #2 from gaurav/add-github-action-ci
Browse files Browse the repository at this point in the history
Create GitHub Action for `sbt test`
  • Loading branch information
gaurav committed Jun 3, 2022
2 parents e17a1ca + 6093477 commit e9bef30
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Scala CI

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['11', '17', '18']
name: Java ${{ matrix.java }}

steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'sbt'
- name: Run tests
run: sbt test

0 comments on commit e9bef30

Please sign in to comment.