Skip to content

Commit

Permalink
feat: echo framework
Browse files Browse the repository at this point in the history
Signed-off-by: Eray Ates <eates23@gmail.com>
  • Loading branch information
rytsh committed Oct 27, 2023
1 parent 2fda986 commit 140f9ee
Show file tree
Hide file tree
Showing 85 changed files with 3,617 additions and 8,203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-go@v3
with:
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
go-version: '1.20.6'
go-version: '1.21.3'
- name: Unshallow
run: git fetch --prune --unshallow
# Frontend build
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.20.6' # The Go version to download (if necessary) and use.
go-version: '1.21.3' # The Go version to download (if necessary) and use.
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Run tests
# [[ ! -f ".golangci.yml" ]] && curl -kfsSL -O https://raw.githubusercontent.com/worldline-go/guide/main/lint/.golangci.yml || true
# GOPATH="$(dirname ${PWD})" golangci-lint run --out-format checkstyle --issues-exit-code 0 ./... > golangci-lint-report.out
# GOPATH="$(dirname ${PWD})" golangci-lint run --out-format checkstyle --new-from-rev remotes/origin/${{ github.event.repository.default_branch }} ./... > golangci-lint-report.out
run: |
[[ ! -f ".golangci.yml" ]] && curl -kfsSL -O https://raw.githubusercontent.com/worldline-go/guide/main/lint/.golangci.yml || true
GOPATH="$(dirname ${PWD})" golangci-lint run --out-format checkstyle ./... > golangci-lint-report.out || true
go test -coverprofile=coverage.out -json ./... > test-report.out
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
Expand Down
2 changes: 0 additions & 2 deletions .swaggo

This file was deleted.

11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SWAG_VERSION := $(shell grep -E 'swaggo/swag' go.mod | awk '{print $$2}')

## golangci configuration
GOLANGCI_CONFIG_URL := https://raw.githubusercontent.com/worldline-go/guide/main/lint/.golangci.yml
GOLANGCI_LINT_VERSION := v1.52.1
GOLANGCI_LINT_VERSION := v1.55.1

.DEFAULT_GOAL := help

Expand Down Expand Up @@ -57,13 +57,20 @@ bin/golangci-lint-$(GOLANGCI_LINT_VERSION):
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(LOCAL_BIN_DIR) $(GOLANGCI_LINT_VERSION)
@mv $(LOCAL_BIN_DIR)/golangci-lint $(LOCAL_BIN_DIR)/golangci-lint-$(GOLANGCI_LINT_VERSION)

lint: .golangci.yml bin/golangci-lint-$(GOLANGCI_LINT_VERSION) ## Lint Go files
lint-all: .golangci.yml bin/golangci-lint-$(GOLANGCI_LINT_VERSION) ## Lint Go files
@$(LOCAL_BIN_DIR)/golangci-lint-$(GOLANGCI_LINT_VERSION) --version
@GOPATH="$(shell dirname $(PWD))" $(LOCAL_BIN_DIR)/golangci-lint-$(GOLANGCI_LINT_VERSION) run ./...

lint: .golangci.yml bin/golangci-lint-$(GOLANGCI_LINT_VERSION) ## Lint Go files
@$(LOCAL_BIN_DIR)/golangci-lint-$(GOLANGCI_LINT_VERSION) --version
@GOPATH="$(shell dirname $(PWD))" $(LOCAL_BIN_DIR)/golangci-lint-$(GOLANGCI_LINT_VERSION) run --new-from-rev remotes/origin/main ./...

env: ## Create environment
docker compose --project-name=chore --file=_example/chore/docker-compose.yml up

env-extra: ## Create environment with extra services
docker compose --profile=extra --project-name=chore --file=_example/chore/docker-compose.yml up

test: ## Run unit tests
@go test -v -race -cover ./...

Expand Down
10 changes: 10 additions & 0 deletions _example/chore/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ services:
# - ./data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
keycloak:
image: quay.io/keycloak/keycloak:20.0.2
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- "8082:8082"
command: start-dev --http-port=8082
profiles:
- extra
17 changes: 17 additions & 0 deletions _example/config/config_keycloak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
secret: thisisfordevelopmenttestsecret
log_level: debug
user:
name: admin
password: admin
store:
type: postgres
schema: chore
host: "127.0.0.1"
port: "5432"
user: postgres
dbName: postgres
auth_providers:
keycloak:
client_id: 'ui'
cert_url: 'http://localhost:8082/realms/master/protocol/openid-connect/certs'
token_url: 'http://localhost:8082/realms/master/protocol/openid-connect/token'
48 changes: 24 additions & 24 deletions _web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "_~chore-frontend~_",
"name": "chore-frontend",
"version": "0.0.0",
"private": true,
"type": "module",
Expand All @@ -12,44 +12,44 @@
"build-front": "pnpm run depend && pnpm build"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "1.0.9",
"@tailwindcss/typography": "^0.5.7",
"@sveltejs/vite-plugin-svelte": "^2.4.6",
"@tailwindcss/typography": "^0.5.10",
"@tsconfig/svelte": "^3.0.0",
"@types/codemirror": "^5.60.5",
"@types/codemirror": "^5.60.10",
"@types/drawflow": "^0.0.4",
"@types/path-browserify": "^1.0.0",
"@types/showdown": "^1.9.4",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"autoprefixer": "^10.4.0",
"autoprefixer": "^10.4.16",
"axios": "^0.24.0",
"codemirror": "^5.65.9",
"codemirror": "^5.65.15",
"drawflow": "^0.0.59",
"eslint": "^8.26.0",
"eslint": "^8.51.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-svelte3": "^4.0.0",
"highlight.js": "^11.6.0",
"highlight.js": "^11.9.0",
"immutability-helper": "^3.1.1",
"js-base64": "^3.7.3",
"js-base64": "^3.7.5",
"jwt-decode": "^3.1.2",
"path-browserify": "^1.0.1",
"postcss": "^8.4.18",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"rollup": "^3.2.3",
"sass": "^1.55.0",
"rollup": "^4.0.2",
"sass": "^1.69.3",
"showdown": "^2.1.0",
"stylelint": "^14.14.0",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-config-standard": "^29.0.0",
"stylelint-scss": "^4.3.0",
"svelte": "3.52.0",
"svelte-preprocess": "4.10.7",
"stylelint": "^15.10.3",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-scss": "^4.7.0",
"svelte": "^3.59.2",
"svelte-preprocess": "^5.0.4",
"svelte-spa-router": "^3.3.0",
"tailwindcss": "^3.2.1",
"typescript": "^4.9.4",
"vite": "^3.1.8",
"yaml": "^2.1.3"
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"vite": "^4.4.11",
"yaml": "^2.3.2"
}
}
Loading

0 comments on commit 140f9ee

Please sign in to comment.