mirror of
https://github.com/mruwnik/chicken-master.git
synced 2025-06-08 13:24:42 +02:00
Create clojure.yml
This commit is contained in:
parent
51ffbb8333
commit
a003bd582d
46
.github/workflows/clojure.yml
vendored
Normal file
46
.github/workflows/clojure.yml
vendored
Normal 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
23
README.md
Normal 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
|
@ -1,3 +1,6 @@
|
||||
# Backend
|
||||
|
||||
The API for the chickens service.
|
||||
|
||||
## Development
|
||||
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user