Lucien Cartier-Tilet ca2434da9a
chore: migrate development environment from Nix flakes to devenv
Replace Nix flake-based development setup with devenv for better
developer experience and more streamlined environment management.

Changes:
  - Remove flake.nix and flake.lock files
  - Add devenv.nix, devenv.yaml, and devenv.lock configuration
  - Update .envrc to use devenv instead of nix develop
  - Remove Docker development setup (compose.dev.yml, docker/mod.just)
  - Expand .gitignore with comprehensive IDE and OS exclusions
  - Remove Docker-related just commands from justfile
2025-06-06 11:09:54 +02:00

48 lines
1.2 KiB
YAML

name: CI
on:
pull_request:
push:
env:
DATABASE_URL: postgresql://georm:georm@postgres:5432/georm
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'ref/heads/master' }}
jobs:
tests:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:js-latest
options: --security-opt seccomp=unconfined
permissions:
pull-requests: write
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: georm
POSTGRES_USER: georm
POSTGRES_DB: georm
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 10s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Install devenv
run: nix profile install nixpkgs#devenv
- name: Migrate database
run: devenv shell just migrate
- name: Formatting check
run: devenv shell just format-check
- name: Lint
run: devenv shell just lint
- name: Audit
run: devenv shell just audit
- name: Tests
run: devenv shell just test