Group Messages Table/Impl/Tests #718
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Start Docker containers | |
run: dev/up | |
- name: Setup Kotlin | |
run: | | |
sudo apt update -q | |
sudo apt install -y openjdk-11-jdk | |
sudo snap install --classic kotlin | |
cd bindings_ffi | |
make install-jar | |
echo "$(make echo-jar | tail -n 1 | sed -e 's/\.*export //')" >> "$GITHUB_ENV" | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
. | |
bindings_ffi | |
- name: Run cargo test on main workspace | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: Run cargo test on FFI bindings | |
run: | | |
export CLASSPATH="${{ env.CLASSPATH }}" | |
cargo test --manifest-path bindings_ffi/Cargo.toml |