-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from BRAVO68WEB/core/major-changes
core/major changes
- Loading branch information
Showing
51 changed files
with
15,662 additions
and
11,954 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,3 @@ | ||
HASURA_GRAPHQL_METADATA_URL= | ||
HASURA_GRAPHQL_URL= | ||
HASURA_GRAPHQL_ADMIN_SECRET= |
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,57 +1,57 @@ | ||
name: "Project Sync Run" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sync: | ||
description: 'Dump DB' | ||
required: true | ||
default: false | ||
type: boolean | ||
schedule: | ||
- cron: '0 */12 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
sync: | ||
description: "Dump DB" | ||
required: true | ||
default: false | ||
type: boolean | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Installing Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- uses: ankane/setup-postgres@v1 | ||
with: | ||
postgres-version: 15 | ||
- name: Download PKG Databases | ||
run: ./scripts/get_pkgs.sh | ||
- name: Init Local Database | ||
run: ./scripts/init_db.sh | ||
- name: Building with Cargo | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Run DBGen Parse | ||
run: cargo run --release --bin dbgen | ||
- name: Run AUR Parser | ||
run: cargo run --release --bin aurparser | ||
- name: Index Local Database | ||
run: ./scripts/index_db.sh | ||
- name: DB Clean Up | ||
run: | | ||
psql -d ${{ secrets.PG_CONNECTION_STRING }} -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" | ||
- name: Run Additional Scripts | ||
run: | | ||
curl https://github.com/Roxedus/Pgloader-bin/releases/download/ec8f41d/pgloader -L -o pgloader | ||
chmod +x pgloader | ||
./pgloader sqlite://db/local.db ${{ secrets.PG_CONNECTION_STRING }} >/dev/null 2>&1 | ||
- name: Sync Hasura Metadata | ||
run: | | ||
./scripts/hasura_sync.sh ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ github.event.inputs.sync == 'true' }} | ||
name: Upload DB | ||
with: | ||
name: localdbs | ||
path: | | ||
**/local.db | ||
db/local.db | ||
- uses: actions/checkout@v2 | ||
- name: Installing Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- uses: ankane/setup-postgres@v1 | ||
with: | ||
postgres-version: 15 | ||
- name: Download PKG Databases | ||
run: ./scripts/get_pkgs.sh | ||
- name: Init Local Database | ||
run: ./scripts/init_db.sh | ||
- name: Building with Cargo | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Run DBGen Parse | ||
run: cargo run --release --bin dbgen | ||
- name: Run AUR Parser | ||
run: cargo run --release --bin aurparser | ||
- name: Index Local Database | ||
run: ./scripts/index_db.sh | ||
- name: DB Clean Up | ||
run: | | ||
psql -d ${{ secrets.PG_CONNECTION_STRING }} -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" | ||
- name: Run Additional Scripts | ||
run: | | ||
curl https://github.com/Roxedus/Pgloader-bin/releases/download/ec8f41d/pgloader -L -o pgloader | ||
chmod +x pgloader | ||
./pgloader sqlite://db/local.db ${{ secrets.PG_CONNECTION_STRING }} >/dev/null 2>&1 | ||
- name: Sync Hasura Metadata | ||
run: | | ||
./scripts/hasura_sync.sh ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ github.event.inputs.sync == 'true' }} | ||
name: Upload DB | ||
with: | ||
name: localdbs | ||
path: | | ||
**/local.db | ||
db/local.db |
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,31 +1,31 @@ | ||
name: "Project Test Run" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Installing Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Download PKG Databases | ||
run: ./scripts/get_pkgs.sh | ||
- name: Init Local Database | ||
run: ./scripts/init_db.sh | ||
- name: Building with Cargo | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Run DBGen Parse | ||
run: cargo run --release --bin dbgen | ||
- name: Run AUR Parser | ||
run: cargo run --release --bin aurparser | ||
- name: Index Local Database | ||
run: ./scripts/index_db.sh | ||
- uses: actions/checkout@v2 | ||
- name: Installing Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Download PKG Databases | ||
run: ./scripts/get_pkgs.sh | ||
- name: Init Local Database | ||
run: ./scripts/init_db.sh | ||
- name: Building with Cargo | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Run DBGen Parse | ||
run: cargo run --release --bin dbgen | ||
- name: Run AUR Parser | ||
run: cargo run --release --bin aurparser | ||
- name: Index Local Database | ||
run: ./scripts/index_db.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 |
---|---|---|
|
@@ -7,3 +7,4 @@ target/ | |
node_modules | ||
.turbo | ||
.vercel | ||
.env |
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,6 +1,6 @@ | ||
schema: 'graphql/schema.graphql' | ||
documents: 'packages/**/*.{ts,tsx,js,jsx,graphql}' | ||
schema: "graphql/schema.graphql" | ||
documents: "packages/**/*.{ts,tsx,js,jsx,graphql}" | ||
extensions: | ||
languageService: | ||
cacheSchemaFileForLookup: true | ||
enableValidation: false | ||
languageService: | ||
cacheSchemaFileForLookup: true | ||
enableValidation: false |
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,5 @@ | ||
apps/pacsearch-app/.next | ||
node_modules | ||
target | ||
apps/pacsearch-app/node_modules | ||
.turbo |
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,7 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"useTabs": 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
# Pacman Package Finder (In Dev) | ||
|
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,3 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": "next/core-web-vitals" | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.