Skip to content

Commit

Permalink
Add test and codecov CI
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Jun 29, 2024
1 parent 43d860f commit 0801963
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/worflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Codecov

on:
push:
branches:
- "**"

permissions: write-all

jobs:
upload-coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.1
with:
cli: latest

## Kaocha with Cloverage generates codecov files
## refer to tests.edn
- name: Run the clj tests
run: clojure -M:dev/test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
25 changes: 25 additions & 0 deletions .github/worflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tests

on:
push:
branches-ignore:
- master

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.1
with:
cli: latest

- name: Verify code base format
run: clojure -T:cljfmt check

- name: Run the clj tests
run: clojure -M:dev/test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div align="center">
<a href="https://clojure.org/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/clojure-v1.11.1-blue.svg" alt="Clojure Version"></a>
<a href="https://redplanetlabs.com/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/rama-v0.16.1-red.svg" alt="Rama Public Version"></a>
<a href="https://github.com/skydread1/RamaSpace/actions/workflows/main.yml"><img src="https://github.com/skydread1/RamaSpace/actions/workflows/main.yml/badge.svg" alt="CI"></a>
<a href="https://codecov.io/gh/skydread1/portfolio" ><img src="https://codecov.io/gh/skydread1/portfolio/branch/master/graph/badge.svg"/></a>
<a href="https://github.com/skydread1/RamaSpace/actions/workflows/test.yml"><img src="https://github.com/skydread1/RamaSpace/actions/workflows/test.yml/badge.svg" alt="CI"></a>
<a href="https://codecov.io/gh/skydread1/RamaSpace" ><img src="https://codecov.io/gh/skydread1/RamaSpace/branch/master/graph/badge.svg"/></a>
<a href="https://github.com/skydread1/RamaSpace/issues" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/contributions-welcome-blue.svg" alt="Contributions welcome"></a>
</div>

Expand Down

0 comments on commit 0801963

Please sign in to comment.