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

Enhanced the CI with tests #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 20 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,33 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 8
- name: Lint
uses: DeLaGuardo/clojure-lint-action@v1
uses: DeLaGuardo/clojure-lint-action@master
with:
clj-kondo-args: --lint src test
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: lein test
- name: Unit tests
run: lein cloverage --lcov --junit
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: "target/coverage/junit.xml"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: "target/coverage/lcov.info"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:profiles {;; REPL, development and testing
:dev
{:source-paths ["dev"]
:plugins [[lein-cloverage "1.2.1"]]
:plugins [[lein-cloverage "1.2.2"]]
:dependencies [[org.clojure/tools.namespace "1.0.0"] ;For repl refresh
[tortue/spy "2.0.0"]
[metosin/sieppari "0.0.0-alpha13"]
Expand Down