Skip to content

Commit

Permalink
Merge pull request #165 from guardian/db/add-ci-workflow
Browse files Browse the repository at this point in the history
Add CI to the project
  • Loading branch information
Divs-B authored Jan 29, 2024
2 parents dcf0568 + 36866ae commit 8a8b60c
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 8a8b60c

Please sign in to comment.