Skip to content

Commit

Permalink
Merge pull request #156 from jpolchlo/github-workflows
Browse files Browse the repository at this point in the history
Use Github actions for CI
jpolchlo authored Dec 20, 2021
2 parents 691e789 + dd20805 commit a68f4cf
Showing 3 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/docker-compose.yml
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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- GitHub actions config

### Changed

### Fixed

0 comments on commit a68f4cf

Please sign in to comment.