-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Migrate CI from Circle CI to GitHub Actions
- Loading branch information
NomadBlacky
committed
Jun 13, 2021
1 parent
b9eabdc
commit c49ff82
Showing
3 changed files
with
34 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Scala CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
scalafmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/cache-action@v6 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- name: Check scalafmt | ||
run: ./sbt scalafmtCheckAll scalafmtSbtCheck | ||
test: | ||
strategy: | ||
matrix: | ||
java: | ||
- 8 | ||
- 11 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/cache-action@v6 | ||
- name: Set up JDK ${ matrix.java } | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: ${ matrix.java } | ||
- name: Run tests | ||
run: ./sbt +test |