-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
* Add cors config * add user interface (#5) * Update README.md * Add emoji * chore: add vite react create-app in ui folder * feat: add schedule list page * fix: fixes Navbar logo link * feat: add create schedule form page * Api changes and improvements * feat: add delete schedule action * feat: add delete schedule confirmation dialog * feat: add schedule detail page * feat: add DialogActionTrigger component * feat: update api url, add ScheduleCardList component * feat: add seed button * feat: update style, add animations * feat: add pre-commit prettier format * feat: format the entire project UI code using prettier * feat: move new schedule form in a Dialog * fix: action bar actions (wip) * feat: add resume, pause, trigger schedule api integration * Fixed issue with pause and resume * Add build workflow * Add support for build without web ui * Add Test workflow * Fix Less() * Fix tests * Add test for pause/resume * feat: add schedule detail modal * Generate version based on commit and branch * Add release workflow * Add build of ui in Dockerfile * Fix tag * Fix prefix of image * Fix test --------- Co-authored-by: Stefano Scafiti <stefano.scafiti96@gmail.com> --------- Co-authored-by: Alessio Sferro <sferro.alessio@gmail.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main, dev ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Build | ||
run: go build -v ./... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build and Push Docker Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/v*.*.* | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Extract the version (v*.*.*) from the branch name | ||
- name: Extract version | ||
id: extract_version | ||
run: echo "VERSION=${GITHUB_REF_NAME##*/}" >> $GITHUB_ENV | ||
|
||
# Log in to GitHub Container Registry | ||
- name: Log in to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Build and Push the Docker Image | ||
- name: Build and Push Docker Image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: true | ||
tags: | | ||
ghcr.io/${{ github.repository }}:${{ env.VERSION }} | ||
ghcr.io/${{ github.repository }}:latest |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [main, dev] | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Run tests | ||
run: go test ./... -v |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
vendor | ||
node_modules | ||
data/kronos.bolt | ||
bin | ||
*.sqlite | ||
*.sqlite |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd UI | ||
npx lint-staged |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
kronos: | ||
image: ghcr.io/ostafen/kronos | ||
ports: | ||
- '9175:9175' | ||
environment: | ||
- PORT=9175 # configuration properties can be overridden through environment variables | ||
- STORE_PATH=/data/kronos.bolt | ||
volumes: | ||
- ./data:/data |