Skip to content

Merge pull request #12 from tablelandnetwork/bcalza/listdealsfromhl #105

Merge pull request #12 from tablelandnetwork/bcalza/listdealsfromhl

Merge pull request #12 from tablelandnetwork/bcalza/listdealsfromhl #105

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
concurrency:
group: test-${{github.ref}}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
toolchain:
- stable
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Install Cap'n Proto
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get install -y capnproto libcapnp-dev
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all
- name: Install CockroachDB
run: |
sudo apt -y install tar wget
sudo mkdir -p /usr/local/lib/cockroach
wget https://binaries.cockroachdb.com/cockroach-v23.1.9.linux-amd64.tgz
tar -xzf cockroach-v23.1.9.linux-amd64.tgz
sudo cp -f cockroach-v23.1.9.linux-amd64/cockroach /usr/local/bin/
sudo chmod +x /usr/local/bin/cockroach
sudo cp -rf cockroach-v23.1.9.linux-amd64/lib/* /usr/local/lib/cockroach/
working-directory: /tmp
- name: Start CockroachDB
run: cockroach start-single-node --insecure --store=type=mem,size=0.25 --advertise-addr=localhost --background
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all
env:
EXPORT_BUCKET: ${{ secrets.EXPORT_BUCKET }}
EXPORT_CREDENTIALS: ${{ secrets.EXPORT_CREDENTIALS }}
EXPORT_SCHEDULE: 1/5 * * * * *
DATABASE_HOST: localhost:26257