-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 74175ae
Showing
113 changed files
with
60,875 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
|
||
# AWS User-specific | ||
.idea/**/aws.xml | ||
|
||
# Generated files | ||
.idea/**/contentModel.xml | ||
|
||
# Sensitive or high-churn files | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/dbnavigator.xml | ||
|
||
# Gradle | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# Gradle and Maven with auto-import | ||
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
# .idea/jarRepositories.xml | ||
# .idea/modules.xml | ||
# .idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# SonarLint plugin | ||
.idea/sonarlint/ | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
|
||
# Android studio 3.1+ serialized cache file | ||
.idea/caches/build_file_checksums.ser | ||
|
||
### Git template | ||
# Created by git for backups. To disable backups in Git: | ||
# $ git config --global mergetool.keepBackup false | ||
*.orig | ||
|
||
# Created by git when using merge tools for conflicts | ||
*.BACKUP.* | ||
*.BASE.* | ||
*.LOCAL.* | ||
*.REMOTE.* | ||
*_BACKUP_*.txt | ||
*_BASE_*.txt | ||
*_LOCAL_*.txt | ||
*_REMOTE_*.txt | ||
|
||
### Go template | ||
# If you prefer the allow list template instead of the deny list, see community template: | ||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore | ||
# | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
|
||
|
||
*sqlite3* | ||
data/* | ||
dist/* | ||
bin/* | ||
.git | ||
.idea | ||
tiktoken* | ||
tmp/ | ||
files/ | ||
bak/ | ||
.git/ | ||
*.pem | ||
**/*.sqlite3 | ||
systemd/ | ||
frontend/build/ | ||
frontend/.env | ||
### ReactNative template | ||
# React Native Stack Base | ||
|
||
ui/.expo | ||
__generated__ | ||
|
||
### Node template | ||
# Logs | ||
|
||
**/npm-debug.log* | ||
**/yarn-debug.log* | ||
**/yarn-error.log* | ||
**/lerna-debug.log* | ||
**/.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
**/report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
**/pids | ||
**/*.pid | ||
**/*.seed | ||
**/*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
**/lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
**/.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
**/.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
**/bower_components | ||
|
||
# node-waf configuration | ||
**/.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
**/build/Release | ||
|
||
# Dependency directories | ||
**/node_modules/ | ||
**/jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
**/web_modules/ | ||
|
||
# TypeScript cache | ||
**/*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
**/.npm | ||
|
||
# Optional eslint cache | ||
**/.eslintcache | ||
|
||
# Optional stylelint cache | ||
**/.stylelintcache | ||
|
||
# Microbundle cache | ||
**/.rpt2_cache/ | ||
**/.rts2_cache_cjs/ | ||
**/.rts2_cache_es/ | ||
**/.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
**/.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
**/*.tgz | ||
|
||
# Yarn Integrity file | ||
**/.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
**/.env | ||
**/.env.development.local | ||
**/.env.test.local | ||
**/.env.production.local | ||
**/.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
**/.cache | ||
**/.parcel-cache | ||
|
||
# Next.js build output | ||
**/.next | ||
**/out | ||
|
||
# Nuxt.js build / generate output | ||
**/.nuxt | ||
**/dist | ||
|
||
# Gatsby files | ||
**/.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
**/.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
**/.temp | ||
|
||
|
||
# Docusaurus cache and generated files | ||
**/.docusaurus | ||
|
||
# Serverless directories | ||
**/.serverless/ | ||
|
||
# FuseBox cache | ||
**/.fusebox/ | ||
|
||
# DynamoDB Local files | ||
**/.dynamodb/ | ||
|
||
# TernJS port file | ||
**/.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
**/.vscode-test | ||
|
||
# yarn v2 | ||
**/.yarn/cache | ||
**/.yarn/unplugged | ||
**/.yarn/build-state.yml | ||
**/.yarn/install-state.gz | ||
**/.pnp.* | ||
|
||
### react template | ||
**/.DS_* | ||
|
||
**/*.backup.* | ||
**/*.back.* | ||
|
||
**/node_modules | ||
|
||
*.sublime* | ||
|
||
**/psd | ||
**/thumb | ||
**/sketch | ||
|
||
**/.git | ||
|
||
disconcierge/static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# This workflow will build a golang project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | ||
|
||
name: Go | ||
|
||
env: | ||
GOFLAGS: '-mod=vendor' | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-frontend: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./frontend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'npm' | ||
cache-dependency-path: 'frontend/package-lock.json' | ||
- run: npm install | ||
- run: npm run test -- --watchAll=false | ||
- run: npm run build | ||
env: | ||
REACT_APP_API_HOST: https://127.0.0.1 | ||
REACT_APP_API_PORT: 5000 | ||
PUBLIC_URL: https://127.0.0.1:5000/admin | ||
- name: Upload UI/frontend | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: frontend_build | ||
path: ./frontend/build | ||
|
||
build: | ||
needs: build-frontend | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.22' | ||
- name: Test | ||
run: go test -timeout 600s -v ./... | ||
- name: Get UI | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: frontend_build | ||
path: ./frontend/build | ||
- name: Build | ||
run: | | ||
mkdir -p bin/ | ||
mv ./frontend/build/* ./disconcierge/static | ||
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.CommitSHA=${GITHUB_SHA} -X main.BuildTime=$(date -u +'%Y-%m-%d_%H:%M:%S') -X main.Version=${GITHUB_RUN_ID}" -o bin/disconcierge . | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: disconcierge-linux-amd64 | ||
path: bin/disconcierge |
Oops, something went wrong.