Skip to content

chore(deps): Bump ravsamhq/notify-slack-action from 042f29088bb3bdbda… #2944

chore(deps): Bump ravsamhq/notify-slack-action from 042f29088bb3bdbda…

chore(deps): Bump ravsamhq/notify-slack-action from 042f29088bb3bdbda… #2944

Workflow file for this run

name: Postgres E2E tests
on:
push:
jobs:
run_postgres_e2es:
name: Run Postgres E2Es
runs-on: ubuntu-latest
steps:
- name: Install Nix ❄
uses: cachix/install-nix-action@a6f7623b2e2401f485f1eead77ced45bd99b09b0 # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up the Nix Cache 🔌
uses: cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
with:
name: hasura-v3-dev
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Install `just`
uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b # v3
- name: Check out ndc-postgres
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
path: ndc-postgres
- name: Check out v3-engine
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
repository: hasura/v3-engine
path: v3-engine
token: ${{ secrets.HASURA_BOT_TOKEN }}
- name: Check out v3-e2e-testing
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
repository: hasura/v3-e2e-testing
path: v3-e2e-testing
token: ${{ secrets.HASURA_BOT_TOKEN }}
- name: Cache v3-e2e-testing compilation
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
with:
workspaces: "v3-e2e-testing"
shared-key: "build-v3-e2e-testing"
- name: Install v3-e2e-testing tools
working-directory: v3-e2e-testing
run: rustup show
- name: Build v3-engine
working-directory: v3-engine
run: nix build .
- name: Build ndc-postgres
working-directory: ndc-postgres
run: nix build .
- name: Run the tests
working-directory: v3-e2e-testing
env:
ENGINE_BINARY: >-
${{ github.workspace }}/v3-engine/result/bin/engine
NDC_POSTGRES_BINARY: >-
${{ github.workspace }}/ndc-postgres/result/bin/ndc-postgres
run: |
npm install
just start-postgres_v0_2-dependencies start-apollo-subgraph
trap 'just stop-everything' EXIT
RUST_LOG=DEBUG ./crates/postgres_v0_2/static/run-postgres-tests.sh '.*' "$NDC_POSTGRES_BINARY" "$ENGINE_BINARY"
- name: Upload logs
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
with:
name: logs
path: v3-e2e-testing/crates/postgres/static/logs