-
-
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.
Co-authored-by: Quentin Lemaire <[email protected]>
- Loading branch information
Showing
33 changed files
with
2,794 additions
and
33 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 |
---|---|---|
|
@@ -29,6 +29,12 @@ jobs: | |
with: | ||
go-version: 1.21 | ||
|
||
- name: Setup task | ||
uses: arduino/setup-task@v1 | ||
|
||
- name: Build frontend | ||
run: task ui:build --force | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
|
@@ -58,6 +64,12 @@ jobs: | |
- name: Install ko | ||
uses: imjasonh/[email protected] | ||
|
||
- name: Setup task | ||
uses: arduino/setup-task@v1 | ||
|
||
- name: Build frontend | ||
run: task ui:build --force | ||
|
||
- name: Build and push snapshot Docker image | ||
env: | ||
KO_DOCKER_REPO: ghcr.io/skynewz/gh-stars-search-engine | ||
|
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
# See documentation at https://github.com/go-simpler/sloggen/blob/main/.slog.example.yml | ||
pkg: slogx | ||
|
||
imports: | ||
- time | ||
- net/http | ||
imports: [ time ] | ||
|
||
attrs: | ||
- err: error | ||
- duration: time.Duration | ||
- request: "*http.Request" | ||
- component: string |
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,52 @@ | ||
--- | ||
version: 3 | ||
|
||
vars: | ||
UI_DIRECTORY: ui | ||
|
||
tasks: | ||
ui:deps: | ||
desc: Install UI dependencies | ||
dir: "{{ .UI_DIRECTORY }}" | ||
cmd: | | ||
docker run --rm --name yarn \ | ||
-v $(pwd):/app \ | ||
-w /app \ | ||
node:lts-alpine \ | ||
yarn install --frozen-lockfile --non-interactive --no-progress --production=false | ||
sources: | ||
- package.json | ||
- yarn.lock | ||
|
||
ui:build: | ||
desc: Build UI | ||
dir: "{{ .UI_DIRECTORY }}" | ||
deps: [ ui:deps ] | ||
cmd: | | ||
docker run --rm --name yarn \ | ||
-v $(pwd):/app \ | ||
-w /app \ | ||
node:lts-alpine \ | ||
yarn build --mode production | ||
sources: | ||
- src/**/* | ||
- .eslintrc.cjs | ||
- index.html | ||
- postcss.config.js | ||
- tailwind.config.ts | ||
- tsconfig.json | ||
- tsconfig.node.json | ||
- vite.config.ts | ||
generates: | ||
- dist/**/* | ||
|
||
ui:setup: | ||
desc: Start yarn container | ||
dir: "{{ .UI_DIRECTORY }}" | ||
deps: [ ui:deps ] | ||
cmd: | | ||
docker run -it --rm --name yarn \ | ||
-v $(pwd):/app \ | ||
-w /app \ | ||
node:lts-alpine \ | ||
sh |
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,19 @@ | ||
version: "3" | ||
|
||
services: | ||
ghs-engine: | ||
container_name: ghs-engine | ||
image: ghcr.io/skynewz/gh-stars-search-engine:latest | ||
restart: unless-stopped | ||
environment: | ||
GITHUB_TOKEN: ${GITHUB_TOKEN} | ||
BELVE_STORAGE_PATH: /ko-app/ghs.belve | ||
volumes: | ||
- /opt/ghs-search/ghs.belve:/ko-app/ghs.belve | ||
networks: | ||
- proxy # Allow access from our Nginx Proxy Manager | ||
|
||
networks: | ||
proxy: | ||
external: true | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
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,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
Oops, something went wrong.