Skip to content

Commit

Permalink
Add CI to the project
Browse files Browse the repository at this point in the history
Before adopting release process we need to put CI.
Tests need to be added to run action sbt test as of now we are goign ahead with only sbt compile
  • Loading branch information
Divs-B committed Jan 29, 2024
1 parent dcf0568 commit 36866ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
workflow_dispatch:
pull_request:

# triggering CI default branch improves caching
# see https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 11
cache: sbt
- name: Build # and "Test" to apply after having some tests
run: sbt compile
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "test-results/**/TEST-*.xml"
if: always()

0 comments on commit 36866ae

Please sign in to comment.