Skip to content

Commit

Permalink
Merge pull request #2 from DeaconDesperado/dockertests
Browse files Browse the repository at this point in the history
Implement create and drop table, docker-based test suite
  • Loading branch information
DeaconDesperado authored Oct 17, 2023
2 parents 9c893cc + 8375181 commit ba8149f
Show file tree
Hide file tree
Showing 18 changed files with 703 additions and 169 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
name: build
on: [push, pull_request]
on: [pull_request]

env:
CARGO_TERM_COLOR: always
GITHUB_ACTIONS: true

jobs:
build-linux-x86_64:
runs-on: ubuntu-latest
services:
metastore:
image: apache/hive:4.0.0-beta-2-SNAPSHOT
env:
SERVICE_NAME: metastore
SERVICE_OPTS: "-Dhive.root.logger=console"
ports:
- 9083:9083
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install target
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose --release
- name: Await metastore container
run: ./metastore.sh await
- name: Test
run: cargo test --verbose
- name: Archive binaries
run: cargo test -- --show-output
env:
RUST_LOG: trace
RUSTFLAGS: '--cfg ci'
- name: Archive binaries
uses: actions/upload-artifact@v3
with:
name: nektar-x86_64
path: |
target/release/nektar
build-aarch64-darwin:
runs-on: macos-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install aarch64 target
- name: Install aarch64 target
uses: actions-rs/toolchain@v1
with:
target: aarch64-apple-darwin
target: aarch64-apple-darwin
toolchain: stable
- name: Build
run: cargo build --verbose --release --target=aarch64-apple-darwin
- name: Test
run: cargo test --verbose
- name: Archive binaries
- name: Archive binaries
uses: actions/upload-artifact@v3
with:
name: nektar-aarch64-apple-darwin
name: nektar-aarch64-apple-darwin
path: |
target/aarch64-apple-darwin/release/nektar
target/aarch64-apple-darwin/release/nektar
22 changes: 19 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,36 @@ on:

env:
CARGO_TERM_COLOR: always
GITHUB_ACTIONS: true

jobs:
build-linux-x86_64:
runs-on: ubuntu-latest
services:
metastore:
image: apache/hive:4.0.0-beta-2-SNAPSHOT
env:
SERVICE_NAME: metastore
SERVICE_OPTS: "-Dhive.root.logger=console"
ports:
- 9083:9083
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install target
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose --release
- name: Await metastore container
run: ./metastore.sh await
- name: Test
run: cargo test --verbose
run: cargo test -- --show-output
env:
RUST_LOG: trace
RUSTFLAGS: '--cfg ci'
- name: Archive binaries
uses: actions/upload-artifact@v3
with:
Expand All @@ -42,8 +60,6 @@ jobs:
toolchain: stable
- name: Build
run: cargo build --verbose --release --target=aarch64-apple-darwin
- name: Test
run: cargo test --verbose
- name: Archive binaries
uses: actions/upload-artifact@v3
with:
Expand Down
Loading

0 comments on commit ba8149f

Please sign in to comment.