Skip to content

Commit

Permalink
Move codecov to dedicated yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Nov 13, 2023
1 parent 62bb621 commit 9267637
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/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 -A:server/test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test and Build

on:
push:
Expand Down Expand Up @@ -30,11 +30,6 @@ jobs:
- name: Run the cljs tests
run: clojure -A:jvm-base:client:web/test-headless

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Build main.js
run: clojure -T:build js-bundle

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ In the document [How to run the different systems](docs/development/how-to-run.m

If you find any issue and want to contribute, you are welcome to do so!

To do so, create an issue.

The issue title is a **problem** you want to **solve**, for instance:
- *Post edits with no changes are still submitted*
- *Users are not notified on successful actions*
Expand Down

0 comments on commit 9267637

Please sign in to comment.