Skip to content

Commit

Permalink
add(CI): frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thelissimus committed Dec 12, 2023
1 parent e736a6c commit c3ffdc7
Show file tree
Hide file tree
Showing 5 changed files with 5,769 additions and 1,019 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ jobs:
- name: Install dependencies
run: |
lein deps
npm install
npm ci
- name: Build
run: |
lein uberjar
npm run build
- name: Run tests
run: lein test
run: |
lein test
npm run test
env:
DB_TEST_PASSWORD: postgres
15 changes: 15 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = function (config) {
config.set({
browsers: ["ChromeHeadless"],
basePath: "target",
files: ["ci.js"],
frameworks: ["cljs-test"],
plugins: ["karma-cljs-test", "karma-chrome-launcher"],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ["shadow.test.karma.init"],
singleRun: true,
},
});
};
Loading

0 comments on commit c3ffdc7

Please sign in to comment.