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 be8bec5
Show file tree
Hide file tree
Showing 102 changed files with 40 additions and 30,222 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,35 @@ 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: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
- 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 +48,21 @@ 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: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
- 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 +71,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 +83,19 @@ jobs:
- uses: taiki-e/cache-cargo-install-action@e57d133d3c2bc6196d57ce056266ea53dd4feb6d # ratchet:taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-bindgen-cli
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
- 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 be8bec5

Please sign in to comment.