Skip to content

Commit

Permalink
Adding CI
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbranco80 committed Sep 9, 2024
1 parent 4ebd5f1 commit e80321e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
pull_request:
paths:
- .github/workflows/ci.yaml
- .sbtopts
- build.sbt
- .scalafmt.conf
- project/**
- src/**

defaults:
run:
shell: bash

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

jobs:
code-check:
runs-on: self-hosted
container:
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19
steps:
- uses: actions/checkout@v4
- run: sbt headerCheckAll
test:
runs-on: self-hosted
container:
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19
steps:
- uses: actions/checkout@v4
- run: sbt clean test
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish
on:
push:
tags:
- "v*.*.*"

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

jobs:
publish:
runs-on: self-hosted
container:
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: sbt publish
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
sbt clean publish

0 comments on commit e80321e

Please sign in to comment.