build: test for feat-types #4
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 feat-types | |
on: | |
push: | |
branches: [feat-types] | |
pull_request: | |
branches: [feat-types] | |
jobs: | |
test-job: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout and env setup | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build the nix shell | |
run: nix develop --command task --version | |
- uses: Swatinem/rust-cache@v2 | |
# prepare databases | |
- name: Run docker compose | |
if: ${{ contains(inputs.features, 'test-dbs-external') }} | |
run: docker compose up -d | |
working-directory: ./prqlc/prqlc/tests/integration/dbs | |
- name: Wait for database | |
uses: ifaxity/[email protected] | |
with: | |
resource: "tcp:1433 tcp:3306 tcp:5432 tcp:9004" | |
timeout: 60000 | |
# run tests | |
- name: Test prqlc | |
run: nix develop --command task test | |
working-directory: prqlc |