Skip to content

Merge pull request #14 from jolt-lang/chore/ffi-write-argument-order #59

Merge pull request #14 from jolt-lang/chore/ffi-write-argument-order

Merge pull request #14 from jolt-lang/chore/ffi-write-argument-order #59

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: jolt_test
ports: ['5432:5432']
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- name: Install jolt
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y liblz4-1 zlib1g libtinfo6 libpq5 libsqlite3-0
# Install through jolt's own install script rather than resolving the
# release asset here: it owns the archive and binary naming (which
# changed in v0.5.0, when the CLI was renamed from joltc to jolt) and
# verifies the checksum. Resolving the asset by hand left this workflow
# chmod'ing a $HOME/.jolt/joltc that no release ships any more.
curl -fsSL https://raw.githubusercontent.com/jolt-lang/jolt/main/install \
| bash -s -- --dir "$HOME/.jolt"
echo "$HOME/.jolt" >> "$GITHUB_PATH"
- name: Test
run: JOLT_TEST_PG_URI=postgres://postgres:postgres@127.0.0.1:5432/jolt_test JOLT_PWD="$PWD" jolt -M:test