Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srnovus committed Oct 30, 2024
1 parent f55d626 commit 5070e85
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI for Fedired

on:
push:
branches:
- main
- nvus
pull_request:
branches:
- main
- nvus

jobs:
build-and-test:
runs-on: ubuntu-latest

services:
# Configura PostgreSQL para tus pruebas y migraciones
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: fedired_test
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/[email protected]
with:
version: 9.9.0

- name: Install dependencies with pnpm
run: pnpm install

- name: Build the project
run: pnpm run build

- name: Run TypeScript tests
run: pnpm run test:ts

- name: Run Rust tests
run: pnpm run test:rs

- name: Run Rust Miri tests
run: pnpm run test:rs:miri

- name: Run linters for TypeScript and Rust
run: pnpm run lint

- name: Clean up build files
run: pnpm run clean

0 comments on commit 5070e85

Please sign in to comment.