Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions workflow #203

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
78efb2c
add sbt-assembly plugin
dldantas Aug 19, 2022
e3cafb5
create workflow
dldantas Sep 20, 2022
ed47f95
set plugin sbt-github-packages
dldantas Sep 23, 2022
0a5f78e
set github_token
dldantas Sep 23, 2022
b93456a
add action step to publish
dldantas Sep 27, 2022
00e9c5f
fix step to publish
dldantas Sep 27, 2022
aeb49fa
fix step to publish
dldantas Sep 27, 2022
97458ef
set github token
dldantas Sep 27, 2022
ddb592c
set githubTokenSource
dldantas Sep 27, 2022
ccb5d4f
remove github token from main.yaml
dldantas Sep 27, 2022
dccdfc8
action review
dldantas Sep 30, 2022
5220974
add env variable for token
dldantas Sep 30, 2022
ec85903
change action step id
dldantas Sep 30, 2022
0e42731
set github_token secrets
dldantas Oct 3, 2022
0709c8c
set github_token secrets
dldantas Oct 3, 2022
fcbf84b
set github_token secrets
dldantas Oct 3, 2022
75832a8
fix needs jobs
dldantas Oct 3, 2022
57537ce
move env variable
dldantas Oct 4, 2022
5756140
move step publish
dldantas Oct 4, 2022
85f5237
update version
dldantas Oct 4, 2022
ac09e20
test publish and version
dldantas Oct 4, 2022
5b31182
update project version
dldantas Oct 5, 2022
bff33b4
update job name
dldantas Oct 5, 2022
f376770
update version and githubowner
dldantas Oct 5, 2022
8d338ad
update version and githubowner
dldantas Oct 5, 2022
0241276
update githubowner
dldantas Oct 5, 2022
71ea5b0
upgrade sbt version
dldantas Oct 5, 2022
d21221d
increment version number
dldantas Oct 5, 2022
12bae2b
upgrade sbt version to 1.3.13
dldantas Oct 5, 2022
04d38c0
upgrade sbt version to 1.7.2
dldantas Oct 5, 2022
d3a724f
add thisBuild versionSchema parameter in build.sbt
dldantas Oct 5, 2022
e9bdfa5
add the organization variable in the build.sbt
dldantas Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/scala-build-test-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Scala Build, Test and Publish

on:
push:
branches-ignore:
- master
- main

env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

jobs:
build:
name: Build | Test | Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt

- name: run build
run: sbt assembly

- name: run tests
run: sbt -v +test

- name: publish package
run: sbt publish


10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name := "Ignition-Core"

version := "1.0"
version := "1.2.4"

ThisBuild / versionScheme := Some("early-semver")

scalaVersion := "2.11.12"

Expand Down Expand Up @@ -30,3 +32,9 @@ libraryDependencies += "org.joda" % "joda-convert" % "1.8.2"
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.25"

libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.3"

githubOwner := "chaordic"
githubRepository := "ignition-core"
publishMavenStyle := true
githubTokenSource := TokenSource.GitConfig("github.token") || TokenSource.Environment("GITHUB_TOKEN")

2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.6
sbt.version=1.7.2
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")