Create clojure.yml

This commit is contained in:
Daniel O'Connell 2021-03-06 22:03:10 +01:00 committed by Daniel O'Connell
parent 51ffbb8333
commit a003bd582d
4 changed files with 77 additions and 2 deletions

46
.github/workflows/clojure.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Clojure CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
backend-test:
name: Backend Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/setup-clojure@3.1
with:
tools-deps: '1.10.1.763'
- name: Build tests
working-directory: ./backend
run: clojure -M:test
frontend-test:
name: Frontend Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npm install karma karma-cljs-test --save-dev karma-chrome-launcher --save-dev
working-directory: ./frontend
- run: npm install -g karma-cli
- name: Build tests
working-directory: ./frontend
run: npx shadow-cljs compile ci
- name: Run tests
working-directory: ./frontend
run: karma start --single-run

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# Chicken master
Handle the day-to-day business of a small farm. Schedule purchases, track costs, see what sells best etc.
## Development
See the READMEs in the `backend` and `frontend` folders.
## TODO
* daily view
* infinite scroll
* Move to different day
* handle regular customers
** every n days
** copy over to next week
** cancel regular order
* settings menu
* products CRM

View File

@ -1,3 +1,6 @@
# Backend
The API for the chickens service.
## Development

View File

@ -1,3 +1,6 @@
# Frontend
All visible stuff.
## Development
@ -29,6 +32,6 @@ Compile the code:
Start the tester:
karma start
CHROME_BIN=/usr/bin/chromium karma start
If the tests are only to be run once, use `karma start --single-run`
If the tests are only to be run once, use `CHROME_BIN=/usr/bin/chromium karma start --single-run`