Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(playground): add substrait validator playground #53

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: C
on:
pull_request:
push:
branches: [ main ]
branches: [main]

jobs:
test:
Expand All @@ -18,6 +18,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: arduino/setup-protoc@v1
- name: Configure
run: mkdir -p build && cd build && cmake ../c -DSUBSTRAIT_VALIDATOR_BUILD_TESTS=ON
- name: Build
Expand All @@ -32,5 +33,5 @@ jobs:
- uses: actions/checkout@v2
- uses: jidicula/[email protected]
with:
clang-format-version: '13'
clang-format-version: "13"
check-path: c
59 changes: 59 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Pages

on: [push, pull_request]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
playground:
name: Playground
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
cache-dependency-path: playground/package-lock.json
- uses: arduino/setup-protoc@v1
- name: Install dependencies
run: npm ci
working-directory: ./playground
- name: Build
run: npm run build -- --base /substrait-validator/
working-directory: ./playground
- name: Check
run: npm run check
working-directory: ./playground
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: target/doc/

deploy:
name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: playground
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/configure-pages@v2
- uses: actions/deploy-pages@v1
id: deployment
11 changes: 8 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Rust
on:
pull_request:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
branches: [main]
tags: ["v*.*.*"]

jobs:
check:
Expand All @@ -19,6 +19,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: arduino/setup-protoc@v1
- uses: Swatinem/rust-cache@v1
- name: Check
run: cargo check --all-features
Expand All @@ -39,6 +40,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: arduino/setup-protoc@v1
- uses: Swatinem/rust-cache@v1
- name: Run unit tests
run: cargo test --all-features
Expand Down Expand Up @@ -81,6 +83,7 @@ jobs:
toolchain: stable
override: true
components: clippy
- uses: arduino/setup-protoc@v1
- uses: Swatinem/rust-cache@v1
- name: Clippy
run: cargo clippy --all-features -- -D warnings
Expand All @@ -97,6 +100,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: arduino/setup-protoc@v1
- uses: Swatinem/rust-cache@v1
- name: Doc
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --workspace --all-features
Expand All @@ -105,7 +109,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ check, test ]
needs: [check, test]
environment: VALIDATOR_RELEASE
steps:
- uses: actions/checkout@v2
Expand All @@ -116,6 +120,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: arduino/setup-protoc@v1
- name: Fetch Substrait submodule tags
working-directory: substrait
run: |
Expand Down
Loading