Skip to content

[ci] Consolidate workflows #1420 #567

[ci] Consolidate workflows #1420

[ci] Consolidate workflows #1420 #567

Workflow file for this run

name: examples
on:
pull_request:
branches: ["main"]
paths:
- examples/**
- agdb/**
- agdb_derive/**
- agdb_server/**
- agdb_api/**
- .github/workflows/examples.yaml
jobs:
agdb_examples_rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo fmt -p examples_app_db -p examples_indexes -p examples_joins -p examples_schema_migration -p examples_server_client -p examples_user_types --check
- run: cargo clippy -p examples_app_db -p examples_indexes -p examples_joins -p examples_schema_migration -p examples_server_client -p examples_user_types --all-targets --all-features -- -D warnings
- run: cargo build -p examples_app_db -p examples_indexes -p examples_joins -p examples_schema_migration -p examples_server_client -p examples_user_types --all-features -r
agdb_examples_typescript:
runs-on: ubuntu-latest
defaults:
run:
working-directory: examples/server_client_typescript
steps:
- run: npm ci && npm run build
working-directory: agdb_api/typescript
- run: npm run format:check
- run: npm run build
agdb_examples_php:
runs-on: ubuntu-latest
defaults:
run:
working-directory: examples/server_client_php
steps:
- run: npm ci
- run: npx prettier --plugin '@prettier/plugin-php' --check src
- run: composer install
- run: vendor/bin/phpstan analyse --level=9 -v src