Skip to content

Commit

Permalink
feat: moving to open source first
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Apr 22, 2024
1 parent f1648ab commit 472f0b5
Show file tree
Hide file tree
Showing 102 changed files with 31 additions and 30,222 deletions.
39 changes: 23 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,32 @@ concurrency:
env:
CARGO_INCREMENTAL: 0
jobs:
github-actions-ratchet-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4
- name: Install ratchet
run: go install github.com/sethvargo/ratchet@latest
- name: Ratchet Check
run: make ratchet_check
rust-lint:
name: Rust Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- name: Install buf
run: brew install bufbuild/buf/buf
- run: make proto
- name: Run cargo fmt
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
Expand All @@ -33,25 +45,18 @@ jobs:
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
command: clippy
github-actions-ratchet-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # ratchet:actions/setup-go@v4
- name: Install ratchet
run: go install github.com/sethvargo/ratchet@latest
- name: Ratchet Check
run: make ratchet_check
rust-test:
name: Rust Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install buf
run: brew install bufbuild/buf/buf
- run: make proto
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
Expand All @@ -60,8 +65,7 @@ jobs:
name: Rust Build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
Expand All @@ -73,13 +77,16 @@ jobs:
- uses: taiki-e/cache-cargo-install-action@e57d133d3c2bc6196d57ce056266ea53dd4feb6d # ratchet:taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-bindgen-cli
- name: Install buf
run: brew install bufbuild/buf/buf
- run: make proto
- name: Check CI scripts
run: make rust_build
sqlfluff-template:
name: Lint template with SQLFluff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install SQLFluff
run: pip install sqlfluff
- name: Lint template
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Fetch Release Assets
id: fetch-assets
uses: actions/github-script@211cb3fefb35a799baa5156f9321bb774fe56294 # ratchet:actions/github-script@v5
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Generated proto

proto/gen

# Terrraform

auth_details.tf
Expand Down
3 changes: 3 additions & 0 deletions .idea/quary.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
version: v1
plugins:
- plugin: buf.build/community/stephenh-ts-proto
out: proto/gen/ts
opt:
- oneof=unions
- globalThisPolyfill=true
- out: proto/gen/rust/src
plugin: buf.build/community/neoeinstein-prost
opt:
Expand All @@ -16,11 +11,3 @@ plugins:
out: proto/gen/rust/src
- out: proto/gen/json_schema
plugin: buf.build/community/chrusty-jsonschema
- plugin: buf.build/bufbuild/connect-es
out: proto/gen/es
opt:
- target=ts
- plugin: buf.build/bufbuild/es
out: proto/gen/es
opt:
- target=ts
71 changes: 0 additions & 71 deletions proto/gen/es/quary/service/v1/cli_rpc_calls_connect.ts

This file was deleted.

Loading

0 comments on commit 472f0b5

Please sign in to comment.