Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,52 @@ jobs:
chmod +x ./run-tests.sh
./run-tests.sh postgresql

rust-backend-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

mariadb:
image: mariadb:11.4
env:
MARIADB_ROOT_PASSWORD: test_password
MARIADB_DATABASE: test_db
ports: ["3306:3306"]
options: >-
--health-cmd "healthcheck.sh --connect --innodb_initialized"
--health-interval 5s --health-timeout 5s --health-retries 10

steps:
- uses: actions/checkout@v4

- uses: hecrj/setup-rust-action@v2
with:
rust-version: "1.99.0"

- name: Run API and pagination regressions on PostgreSQL and MariaDB
working-directory: ./rust-api
env:
DB_HOST: localhost
DB_PORT: 5432
DB_USER: test_user
DB_PASSWORD: test_password
DB_NAME: test_db
PINEPODS_TEST_POSTGRES_URL: postgres://test_user:test_password@localhost:5432/test_db
PINEPODS_TEST_MYSQL_URL: mysql://root:test_password@127.0.0.1:3306/test_db
run: cargo test --locked -- --include-ignored --test-threads=1

frontend-tests:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ clients/mac-app/pinepods.spec
# Web Removals
web/target/*
web/.idea/*

# Rust build artifacts
rust-api/target/*
keystore.properties
key.properties
**/key.properties
Expand Down
Loading