Skip to content

update readme and add cross build for scala 2.12 #31

update readme and add cross build for scala 2.12

update readme and add cross build for scala 2.12 #31

Workflow file for this run

name: Scala CI
on:
push:
branches:
- master
tags: [ "*" ]
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: sbt +compile
- name: Checking Code style
run: sbt check
- name: Run NebulaGraph
run: docker-compose -f examples/src/main/resources/docker-compose.yaml up -d
- name: Run tests
run: sbt test
publish:
runs-on: ubuntu-latest
needs: [build]
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}