-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from jpolchlo/github-workflows
Use Github actions for CI
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
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,13 @@ | ||
version: "3.7" | ||
|
||
services: | ||
test: | ||
image: openjdk:8-jdk | ||
working_dir: /usr/local/src | ||
command: ./sbt ++$SCALA_VERSION test | ||
environment: | ||
- CI | ||
- SCALA_VERSION | ||
volumes: | ||
- ./../:/usr/local/src | ||
network_mode: host |
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,35 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: ['**'] | ||
push: | ||
branches: ['master'] | ||
tags: [v*] | ||
# release: | ||
# types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
strategy: | ||
matrix: | ||
scala: ["2.12.7"] | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SCALA_VERSION: ${{ matrix.scala }} | ||
BUILD_NUMBER: ${{ github.run_id }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: coursier/cache-action@v6 | ||
# - uses: olafurpg/setup-scala@v13 | ||
# with: | ||
# java-version: adopt@1.8 | ||
|
||
- name: run tests | ||
run: docker compose -f .github/docker-compose.yml up test --abort-on-container-exit --exit-code-from test |
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