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

migrate: leiningen -> tools.deps, build.edn, kaocha #20

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

conao3
Copy link
Member

@conao3 conao3 commented Aug 7, 2024

  • migrate: leiningen -> tools.deps, build.edn, kaocha

    • Drop Clojure 1.8 support: kaocha only supported 1.9+
    • Remove antq clojure alias: use global installed antq
    • Remove cloverage make target: kaocha is configured to analyze code coverage by default
    • Use build.clj file instead of project.clj file for testing
  • fix: update copyright year

  • bump version: v0.2.7 -> 0.2.8

  • remove :global-vars; this option for leiningen (remove for now)

    • -> enable *warn-on-refrection* in dev/user.clj.

conao3 and others added 5 commits August 7, 2024 09:23
- Drop Clojure 1.8 support: kaocha only supported 1.9+
- Remove `antq` clojure alias: use global installed antq
- Remove `cloverage` make target: kaocha is configured
  to analyze code coverage by default
- Use build.clj file instead of project.clj file for testing
Copy link
Member

@liquidz liquidz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@conao3 Thanks!

.github/workflows/lint-and-test.yml Outdated Show resolved Hide resolved
key: clj-cache-test-${{ hashFiles('project.clj') }}
restore-keys: |
clj-cache-test-

- name: Run tests
run: lein test-integration
run: make test-integration

- name: Run cloverage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow uses lein command yet.
Could you delete or fix like below?
https://github.com/liquidz/antq/blob/main/.github/workflows/coverage.yml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved at 82597bb

key: clj-cache-test-${{ hashFiles('project.clj') }}
restore-keys: |
clj-cache-test-

- name: Run tests
run: lein test-integration
run: make test-integration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run also make test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved at 82597bb

Makefile Outdated

.PHONY: clean
clean:
lein clean
rm -rf target
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete also .cpcache directory.

Copy link
Member Author

@conao3 conao3 Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved at 08a7e2d

@conao3
Copy link
Member Author

conao3 commented Aug 7, 2024

kaocha-cloverage outputs its report file into target/coverage folder. I don't know action-coverage search/interpret this, I want to try it with no-configration.

target/coverage
├── coverage.css
├── index.html
└── tarayo
    ├── core.clj.html
    └── mail
        ├── constant.clj.html
        ├── mime
        │   ├── address.clj.html
        │   ├── id.clj.html
        │   ├── message.clj.html
        │   ├── multipart
        │   │   ├── body.clj.html
        │   │   └── data_source.clj.html
        │   └── multipart.clj.html
        ├── mime.clj.html
        ├── session.clj.html
        └── transport.clj.html

without this, I got `Error: You must specify at least one clojure tool.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants