Merge pull request #14 from jolt-lang/chore/ffi-write-argument-order #59
This file contains hidden or 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: 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 |