Skip to content

Porkbun Integration #15

Porkbun Integration

Porkbun Integration #15

Workflow file for this run

name: Hurl Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
SQLX_OFFLINE: 1
PORKBUN_API_KEY: FAKE
PORKBUN_SECRET_API_KEY: FAKE
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Hurl
uses: gacts/install-hurl@v1
- name: Build
run: cargo build
- name: Run Hurl Tests
uses: BerniWittmann/background-server-action@v1
with:
command: hurl hurl/*.hurl
start: cargo run
wait-on: "http://localhost:3001"