Learn more about patch #21
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
name: Rust tests | |
on: | |
push: | |
branches: [ main, feature/*, bugfix/* ] | |
pull_request: | |
branches: [ main, feature/*, bugfix/* ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_LOG: debug | |
jobs: | |
build_and_test: | |
runs-on: | |
group: ubuntu_runners | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Upgrade rust with nightly and pull oxigraph and dremio image | |
run: | | |
rustup update | |
rustup toolchain install nightly-2023-08-01 | |
rustup default nightly-2023-08-01 | |
docker pull oxigraph/oxigraph:v0.3.8 | |
docker pull dremio/dremio-oss:22.0.0 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | |
- name: Build | |
run: cargo build --verbose --all | |
- name: Run rust tests | |
run: cargo test --verbose --all |